diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2019-10-12 16:16:31 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-10-14 14:47:13 +0200 |
commit | 6461b659717a6e5aa45f805c5de78babee674fa8 (patch) | |
tree | e9481c4d5413f4c590973168576d34c197ca2ce6 /drivers/regulator | |
parent | feee4b63804858c140c147f73625aa9b1ebc323f (diff) | |
download | barebox-6461b659717a6e5aa45f805c5de78babee674fa8.tar.gz barebox-6461b659717a6e5aa45f805c5de78babee674fa8.tar.xz |
regulator: pfuze: remove unused driver_data
We pass along driver_data that goes unused. Drop it.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/pfuze.c | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/drivers/regulator/pfuze.c b/drivers/regulator/pfuze.c index dc41e8f55b..eeb787cdab 100644 --- a/drivers/regulator/pfuze.c +++ b/drivers/regulator/pfuze.c @@ -161,16 +161,11 @@ static const struct regmap_config pfuze_regmap_i2c_config = { static int __init pfuze_probe(struct device_d *dev) { - struct pfuze_devtype *devtype; int ret; if (pfuze_dev) return -EBUSY; - ret = dev_get_drvdata(dev, (const void **)&devtype); - if (ret) - return ret; - pfuze_dev = xzalloc(sizeof(*pfuze_dev)); pfuze_dev->dev = dev; @@ -192,26 +187,17 @@ static int __init pfuze_probe(struct device_d *dev) return 0; } -static struct pfuze_devtype pfuze100_devtype = { -}; - -static struct pfuze_devtype pfuze200_devtype = { -}; - -static struct pfuze_devtype pfuze3000_devtype = { -}; - static struct platform_device_id pfuze_ids[] = { - { .name = "pfuze100", .driver_data = (ulong)&pfuze100_devtype, }, - { .name = "pfuze200", .driver_data = (ulong)&pfuze200_devtype, }, - { .name = "pfuze3000", .driver_data = (ulong)&pfuze3000_devtype, }, + { .name = "pfuze100" }, + { .name = "pfuze200" }, + { .name = "pfuze3000" }, { } }; static __maybe_unused struct of_device_id pfuze_dt_ids[] = { - { .compatible = "fsl,pfuze100", .data = &pfuze100_devtype, }, - { .compatible = "fsl,pfuze200", .data = &pfuze200_devtype, }, - { .compatible = "fsl,pfuze3000", .data = &pfuze3000_devtype, }, + { .compatible = "fsl,pfuze100" }, + { .compatible = "fsl,pfuze200" }, + { .compatible = "fsl,pfuze3000" }, { } }; |