]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtc: s5m: consolidate two device type switch statements
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Thu, 22 May 2014 00:54:30 +0000 (10:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 30 May 2014 06:58:38 +0000 (16:58 +1000)
commitf5a5170fc4189b91121a7bfa39f3eef0eddcde35
tree385c3ae3fe737420e6f68d4fb245ca1cdb8f2df3
parentd9d86bed58361ec3cb70948cc974139ecf964205
rtc: s5m: consolidate two device type switch statements

In probe the configuration of driver for different chipsets was done in
two switch (pdata->device_type) statements.  Consolidate them into one
switch statement to increase code readability.

Additionally check the return value of regmap_irq_get_virq and exit probe
on error.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Sangbeom Kim <sbkim73@samsung.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-s5m.c