summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-10-07 11:50:58 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-10-09 08:48:02 +0200
commit8e3d1f21d83eb5abb1478dae3b7c263da47cb797 (patch)
treebc6d74df4d0eb864f27d8985ec605ba5ed763e18 /drivers/mfd
parentbc5c8eb1977cf2fa236c05f9ad9dc35814395012 (diff)
downloadbarebox-8e3d1f21d83eb5abb1478dae3b7c263da47cb797.tar.gz
barebox-8e3d1f21d83eb5abb1478dae3b7c263da47cb797.tar.xz
driver: migrate some from dev_get_drvdata to device_get_match_data
The dev_get_drvdata instances here all store a valid pointer in the match data and can be readily converted. Do so. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/da9063.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mfd/da9063.c b/drivers/mfd/da9063.c
index e48c38affa..31359cf8b8 100644
--- a/drivers/mfd/da9063.c
+++ b/drivers/mfd/da9063.c
@@ -370,11 +370,9 @@ static int da9063_probe(struct device_d *dev)
{
struct da9063 *priv = NULL;
struct da906x_device_data const *dev_data;
- void const *dev_data_tmp;
int ret;
- ret = dev_get_drvdata(dev, &dev_data_tmp);
- dev_data = ret < 0 ? NULL : dev_data_tmp;
+ dev_data = device_get_match_data(dev);
priv = xzalloc(sizeof(struct da9063));
priv->wd.set_timeout = da9063_watchdog_set_timeout;