Krzysztof Kozlowski a0347f20aa 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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-06-10 15:34:47 -07:00
..
2014-06-02 16:35:49 -07:00
2014-06-04 09:08:25 -07:00
2014-06-06 12:08:39 -07:00
2014-06-03 11:09:43 -07:00
2014-06-03 08:34:00 -07:00
2014-06-06 11:48:46 -07:00
2014-05-27 17:38:11 -07:00
2014-06-06 12:08:39 -07:00
2014-06-05 16:15:33 -07:00
2014-06-03 11:44:48 -07:00
2014-06-02 16:35:49 -07:00
2014-06-09 18:54:06 -07:00
2014-06-06 11:44:09 -07:00
2014-05-26 21:27:09 +02:00
2014-05-27 14:11:06 -07:00
2014-06-04 09:07:08 -07:00