diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2020-06-26 22:37:42 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2020-07-01 11:40:11 +0200 |
commit | 08bf73a6f056d84fd52a58c5d165523dd84be535 (patch) | |
tree | cc832e3092a3b1c0e4c4481fb215592df0bc8703 /drivers/mfd/sky81452.c | |
parent | backlight: sky81452: Convert to GPIO descriptors (diff) | |
download | linux-08bf73a6f056d84fd52a58c5d165523dd84be535.tar.xz linux-08bf73a6f056d84fd52a58c5d165523dd84be535.zip |
backlight: sky81452: Privatize platform data
The only way the platform data for the SKY81452 ever gets populated
is through the device tree.
The MFD device is bothered with this for no reason at all. Just
allocate the platform data in the driver and be happy.
Cc: Gyungoh Yoo <jack.yoo@skyworksinc.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/sky81452.c')
-rw-r--r-- | drivers/mfd/sky81452.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mfd/sky81452.c b/drivers/mfd/sky81452.c index 76eedfae8553..3ad35bf0c015 100644 --- a/drivers/mfd/sky81452.c +++ b/drivers/mfd/sky81452.c @@ -47,8 +47,6 @@ static int sky81452_probe(struct i2c_client *client, memset(cells, 0, sizeof(cells)); cells[0].name = "sky81452-backlight"; cells[0].of_compatible = "skyworks,sky81452-backlight"; - cells[0].platform_data = pdata->bl_pdata; - cells[0].pdata_size = sizeof(*pdata->bl_pdata); cells[1].name = "sky81452-regulator"; cells[1].platform_data = pdata->regulator_init_data; cells[1].pdata_size = sizeof(*pdata->regulator_init_data); |