From: Andrew Morton Date: Thu, 22 May 2014 00:43:49 +0000 (+1000) Subject: rtc-rtc-cmos-drivers-char-rtcc-features-for-decstation-support-fix X-Git-Tag: next-20140530~2^2~127 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ef0778a1b0d31c20642057f2fa681e6a125d0d36;p=karo-tx-linux.git rtc-rtc-cmos-drivers-char-rtcc-features-for-decstation-support-fix fix weird code layout Cc: "Maciej W. Rozycki" Cc: Alessandro Zummo Cc: Maciej W. Rozycki Cc: Ralf Baechle Signed-off-by: Andrew Morton --- diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c index 7d316986bb6a..b0e4a3eb33c7 100644 --- a/drivers/rtc/rtc-cmos.c +++ b/drivers/rtc/rtc-cmos.c @@ -662,11 +662,11 @@ cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq) * (needing ioremap etc), not i/o space resources like this ... */ if (RTC_IOMAPPED) - ports = request_region - (ports->start, resource_size(ports), driver_name); + ports = request_region(ports->start, resource_size(ports), + driver_name); else - ports = request_mem_region - (ports->start, resource_size(ports), driver_name); + ports = request_mem_region(ports->start, resource_size(ports), + driver_name); if (!ports) { dev_dbg(dev, "i/o registers already in use\n"); return -EBUSY;