X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=drivers%2Frtc%2Frtc-m48t35.c;fp=drivers%2Frtc%2Frtc-m48t35.c;h=8e2a24e33ed69f89530ab9996707c109c5d76816;hb=28f65c11f2ffb3957259dece647a24f8ad2e241b;hp=7410875e5838957d0763a079f967c78c72a0751c;hpb=140a1ef2f91a00e1d25f0878c193abdc25bf6ebe;p=cascardo%2Flinux.git diff --git a/drivers/rtc/rtc-m48t35.c b/drivers/rtc/rtc-m48t35.c index 7410875e5838..8e2a24e33ed6 100644 --- a/drivers/rtc/rtc-m48t35.c +++ b/drivers/rtc/rtc-m48t35.c @@ -154,7 +154,7 @@ static int __devinit m48t35_probe(struct platform_device *pdev) if (!priv) return -ENOMEM; - priv->size = res->end - res->start + 1; + priv->size = resource_size(res); /* * kludge: remove the #ifndef after ioc3 resource * conflicts are resolved