summaryrefslogtreecommitdiffstats
path: root/lib/decompress_unlzma.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2014-06-11 00:18:47 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-11 00:34:47 +0200
commita0347f20aaacc96a203c9609877ecc77093cbe30 (patch)
tree0e9c09eb44077612c79c761cff16ca87a455297a /lib/decompress_unlzma.c
parentrtc: s5m: add support for S2MPS14 RTC (diff)
downloadlinux-a0347f20aaacc96a203c9609877ecc77093cbe30.tar.xz
linux-a0347f20aaacc96a203c9609877ecc77093cbe30.zip
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>
Diffstat (limited to 'lib/decompress_unlzma.c')
0 files changed, 0 insertions, 0 deletions