diff options
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/ab3100-core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mfd/ab3100-core.c b/drivers/mfd/ab3100-core.c index a848df77514a..c533f86ff5ea 100644 --- a/drivers/mfd/ab3100-core.c +++ b/drivers/mfd/ab3100-core.c | |||
@@ -837,6 +837,8 @@ static int __init ab3100_probe(struct i2c_client *client, | |||
837 | const struct i2c_device_id *id) | 837 | const struct i2c_device_id *id) |
838 | { | 838 | { |
839 | struct ab3100 *ab3100; | 839 | struct ab3100 *ab3100; |
840 | struct ab3100_platform_data *ab3100_plf_data = | ||
841 | client->dev.platform_data; | ||
840 | int err; | 842 | int err; |
841 | int i; | 843 | int i; |
842 | 844 | ||
@@ -920,6 +922,8 @@ static int __init ab3100_probe(struct i2c_client *client, | |||
920 | for (i = 0; i < ARRAY_SIZE(ab3100_platform_devs); i++) { | 922 | for (i = 0; i < ARRAY_SIZE(ab3100_platform_devs); i++) { |
921 | ab3100_platform_devs[i]->dev.parent = | 923 | ab3100_platform_devs[i]->dev.parent = |
922 | &client->dev; | 924 | &client->dev; |
925 | ab3100_platform_devs[i]->dev.platform_data = | ||
926 | ab3100_plf_data; | ||
923 | platform_set_drvdata(ab3100_platform_devs[i], ab3100); | 927 | platform_set_drvdata(ab3100_platform_devs[i], ab3100); |
924 | } | 928 | } |
925 | 929 | ||