summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-02-10 19:07:51 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-02-12 08:32:01 +0100
commitea958fadf5328ee42ce68c3cad15f9503581e838 (patch)
treec8e8c59646103f3f7a6c7015498aa9aa5b53fb76 /drivers
parent671a7d5df1c1bae1fca1cebf5b72e2a27b352c70 (diff)
downloadbarebox-ea958fadf5328ee42ce68c3cad15f9503581e838.tar.gz
barebox-ea958fadf5328ee42ce68c3cad15f9503581e838.tar.xz
watchdog: dw_wdt: populate driver_d.name
Apparently, somewhere between v2017.01.0 and v2020.01.0, barebox became dependent on drivers having a name as having this driver enabled in v2020.01.0 has barebox crash due to a null pointer dereference in the device_match's second strcmp. A previous commit introduced a palatable warning for this case. Now in order to be able to use the driver again, give it a name. Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/watchdog/dw_wdt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/watchdog/dw_wdt.c b/drivers/watchdog/dw_wdt.c
index 85e810f248..bedb2ddfe8 100644
--- a/drivers/watchdog/dw_wdt.c
+++ b/drivers/watchdog/dw_wdt.c
@@ -187,6 +187,7 @@ static struct of_device_id dw_wdt_of_match[] = {
};
static struct driver_d dw_wdt_driver = {
+ .name = "dw-wdt",
.probe = dw_wdt_drv_probe,
.of_compatible = DRV_OF_COMPAT(dw_wdt_of_match),
};