watchdog: sunxi_wdt: use of_device_get_match_data
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Sat, 21 Oct 2017 17:45:13 +0000 (19:45 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Thu, 28 Dec 2017 19:45:12 +0000 (20:45 +0100)
commite531037145df630ff9d7be3858497388cc700f79
treeeaa24205264459aef5a087e5295604f836cba6ac
parentb6c84c9ff3f48a476451eceb5e8478b8aadda8dc
watchdog: sunxi_wdt: use of_device_get_match_data

The usage of of_device_get_match_data reduce the code size a bit.
Furthermore, it prevents an improbable dereference when
of_match_device() return NULL.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
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/sunxi_wdt.c