summaryrefslogtreecommitdiff
path: root/drivers/watchdog/tangox_wdt.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2017-03-13 22:07:25 +0300
committerWim Van Sebroeck <wim@iguana.be>2017-06-05 21:38:26 +0300
commita9a02c46624ad112eb07ca26b6a025c1358ed3ad (patch)
tree8db8862575a870cd72ed10df5c116d207c27ad14 /drivers/watchdog/tangox_wdt.c
parent58415efe96670b858eb7b5ab066881ae3f1dad25 (diff)
downloadlinux-a9a02c46624ad112eb07ca26b6a025c1358ed3ad.tar.xz
watchdog: s3c2410: Simplify getting driver data
Simplify the flow in helper function for getting the driver data by using of_device_get_match_data() and only one if() branch. The code should be equivalent. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/tangox_wdt.c')
0 files changed, 0 insertions, 0 deletions