From: Krzysztof Kozlowski Date: Tue, 10 Jun 2014 22:18:47 +0000 (-0700) Subject: rtc: s5m: consolidate two device type switch statements X-Git-Tag: omap-for-v3.16/fixes-against-rc1~62^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0347f20aaacc96a203c9609877ecc77093cbe30;p=pandora-kernel.git 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 Cc: Kyungmin Park Cc: Lee Jones Cc: Alessandro Zummo Cc: Sangbeom Kim Cc: Samuel Ortiz Cc: Marek Szyprowski Cc: Bartlomiej Zolnierkiewicz Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed