summaryrefslogtreecommitdiff
path: root/drivers/mfd/wl1273-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/wl1273-core.c')
-rw-r--r--drivers/mfd/wl1273-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/wl1273-core.c b/drivers/mfd/wl1273-core.c
index edbe6c1b755a..1288e9943f01 100644
--- a/drivers/mfd/wl1273-core.c
+++ b/drivers/mfd/wl1273-core.c
@@ -185,7 +185,7 @@ static int wl1273_core_remove(struct i2c_client *client)
static int wl1273_core_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
- struct wl1273_fm_platform_data *pdata = client->dev.platform_data;
+ struct wl1273_fm_platform_data *pdata = dev_get_platdata(&client->dev);
struct wl1273_core *core;
struct mfd_cell *cell;
int children = 0;