From: Wolfram Sang Date: Mon, 18 Mar 2019 15:47:55 +0000 (+0100) Subject: mfd: da9063: Remove platform_data support X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c6b9605f5eae5b6e3d8a7630759b56301fd5bed1;p=linux.git mfd: da9063: Remove platform_data support There are no in-kernel users anymore, so remove this outdated interface. Signed-off-by: Wolfram Sang Acked-by: Steve Twiss Tested-by: Steve Twiss Reviewed-by: Simon Horman Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/da9063-core.c b/drivers/mfd/da9063-core.c index 4e5ebb7f2ef03..b125f90dd375d 100644 --- a/drivers/mfd/da9063-core.c +++ b/drivers/mfd/da9063-core.c @@ -22,7 +22,6 @@ #include #include -#include #include #include @@ -161,7 +160,6 @@ static int da9063_clear_fault_log(struct da9063 *da9063) int da9063_device_init(struct da9063 *da9063, unsigned int irq) { - struct da9063_pdata *pdata = da9063->dev->platform_data; int model, variant_id, variant_code; int ret; @@ -169,24 +167,10 @@ int da9063_device_init(struct da9063 *da9063, unsigned int irq) if (ret < 0) dev_err(da9063->dev, "Cannot clear fault log\n"); - if (pdata) { - da9063->flags = pdata->flags; - da9063->irq_base = pdata->irq_base; - } else { - da9063->flags = 0; - da9063->irq_base = -1; - } + da9063->flags = 0; + da9063->irq_base = -1; da9063->chip_irq = irq; - if (pdata && pdata->init != NULL) { - ret = pdata->init(da9063); - if (ret != 0) { - dev_err(da9063->dev, - "Platform initialization failed.\n"); - return ret; - } - } - ret = regmap_read(da9063->regmap, DA9063_REG_CHIP_ID, &model); if (ret < 0) { dev_err(da9063->dev, "Cannot read chip model id.\n"); diff --git a/drivers/mfd/da9063-i2c.c b/drivers/mfd/da9063-i2c.c index 4a97ba0a35bb6..455de74c0dd21 100644 --- a/drivers/mfd/da9063-i2c.c +++ b/drivers/mfd/da9063-i2c.c @@ -17,7 +17,6 @@ #include #include -#include #include #include diff --git a/drivers/mfd/da9063-irq.c b/drivers/mfd/da9063-irq.c index e12b3dd0c99bc..e2bbedf58e681 100644 --- a/drivers/mfd/da9063-irq.c +++ b/drivers/mfd/da9063-irq.c @@ -14,7 +14,6 @@ #include #include #include -#include #define DA9063_REG_EVENT_A_OFFSET 0 #define DA9063_REG_EVENT_B_OFFSET 1