diff options
Diffstat (limited to 'drivers/rtc/rtc-m48t35.c')
| -rw-r--r-- | drivers/rtc/rtc-m48t35.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-m48t35.c b/drivers/rtc/rtc-m48t35.c index 7410875e583..8e2a24e33ed 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  |