]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtc: s5m: consolidate two device type switch statements
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Sat, 17 May 2014 13:19:21 +0000 (23:19 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 19 May 2014 07:34:58 +0000 (17:34 +1000)
commita548532789cd8d57a205287f0bfa3c8a1afa0d5c
treebd0df7e394967b8b689c9b53e4f6aa43539041ae
parent770a26a5fbfbc2ba49a50b4d59e15d77d10ea149
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