X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Frtc%2Frtc-pl030.c;h=457231bb1029748ca4c1be64d1689577ae4ad00d;hb=db616eb67604242c11bfbb331bb143bfe4a2e386;hp=aaf1f75fa2939e12e7ecd5ee48111ef37b47a7d8;hpb=c34752bc8b3196aee3115d1aa41972604ab0aea8;p=karo-tx-linux.git diff --git a/drivers/rtc/rtc-pl030.c b/drivers/rtc/rtc-pl030.c index aaf1f75fa293..457231bb1029 100644 --- a/drivers/rtc/rtc-pl030.c +++ b/drivers/rtc/rtc-pl030.c @@ -117,7 +117,7 @@ static int pl030_probe(struct amba_device *dev, struct amba_id *id) goto err_rtc; } - rtc->base = ioremap(dev->res.start, SZ_4K); + rtc->base = ioremap(dev->res.start, resource_size(&dev->res)); if (!rtc->base) { ret = -ENOMEM; goto err_map;