mfd: Use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user