commit | a9a02c46624ad112eb07ca26b6a025c1358ed3ad | [log] [tgz] |
---|---|---|
author | Krzysztof Kozlowski <krzk@kernel.org> | Mon Mar 13 21:07:25 2017 +0200 |
committer | Wim Van Sebroeck <wim@iguana.be> | Mon Jun 05 20:38:26 2017 +0200 |
tree | 8db8862575a870cd72ed10df5c116d207c27ad14 | |
parent | 58415efe96670b858eb7b5ab066881ae3f1dad25 [diff] |
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>