watchdog: s3c2410: Simplify getting driver data
authorKrzysztof Kozlowski <krzk@kernel.org>
Mon, 13 Mar 2017 19:07:25 +0000 (21:07 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 5 Jun 2017 18:38:26 +0000 (20:38 +0200)
commita9a02c46624ad112eb07ca26b6a025c1358ed3ad
tree8db8862575a870cd72ed10df5c116d207c27ad14
parent58415efe96670b858eb7b5ab066881ae3f1dad25
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>
drivers/watchdog/s3c2410_wdt.c