summaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight/lm3630a_bl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/backlight/lm3630a_bl.c')
-rw-r--r--drivers/video/backlight/lm3630a_bl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/lm3630a_bl.c b/drivers/video/backlight/lm3630a_bl.c
index 1128a022e1d..999075a4886 100644
--- a/drivers/video/backlight/lm3630a_bl.c
+++ b/drivers/video/backlight/lm3630a_bl.c
@@ -365,7 +365,7 @@ static const struct regmap_config lm3630a_regmap = {
static int lm3630a_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
- struct lm3630a_platform_data *pdata = client->dev.platform_data;
+ struct lm3630a_platform_data *pdata = dev_get_platdata(&client->dev);
struct lm3630a_chip *pchip;
int rval;