]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
rtc-rtc-cmos-drivers-char-rtcc-features-for-decstation-support-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 22 May 2014 00:43:49 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:49 +0000 (10:43 +1000)
fix weird code layout

Cc: "Maciej W. Rozycki" <macro@linux-mips.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Maciej W. Rozycki <macro@linux-mips.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-cmos.c

index 7d316986bb6a46c65f39fe65b715fc0cf1092f7f..b0e4a3eb33c7dc55d7632fd167cff27e0549b1fb 100644 (file)
@@ -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;