diff options
author | Krzysztof Kozlowski <[email protected]> | 2014-06-10 15:18:47 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-06-10 15:34:47 -0700 |
commit | a0347f20aaacc96a203c9609877ecc77093cbe30 (patch) | |
tree | 0e9c09eb44077612c79c761cff16ca87a455297a /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf | |
parent | 0c5deb1ea92fefa6ee69e2da8b887723bdecf3d9 (diff) |
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 <[email protected]>
Cc: Kyungmin Park <[email protected]>
Cc: Lee Jones <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Cc: Sangbeom Kim <[email protected]>
Cc: Samuel Ortiz <[email protected]>
Cc: Marek Szyprowski <[email protected]>
Cc: Bartlomiej Zolnierkiewicz <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions