diff options
author | Andres Salomon <dilinger@queued.net> | 2011-02-17 22:07:12 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-03-23 05:41:51 -0400 |
commit | 5528e40f973ac427c857593ea0f636b6f65058b0 (patch) | |
tree | 8376906a2f0a55ad668313a6872d667d9cbc1071 /drivers/mfd | |
parent | 0ce5fabe59d7c4f51b5ad51ed178ba92531ec04d (diff) |
mfd: mfd_cell is now implicitly available to ab3100 drivers
The cell's platform_data is now accessed with a helper function;
change clients to use that, and remove the now-unused data_size.
Signed-off-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/ab3100-core.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mfd/ab3100-core.c b/drivers/mfd/ab3100-core.c index 1707d224232d..2dcab8643e71 100644 --- a/drivers/mfd/ab3100-core.c +++ b/drivers/mfd/ab3100-core.c | |||
@@ -949,10 +949,8 @@ static int __devinit ab3100_probe(struct i2c_client *client, | |||
949 | goto exit_no_ops; | 949 | goto exit_no_ops; |
950 | 950 | ||
951 | /* Set up and register the platform devices. */ | 951 | /* Set up and register the platform devices. */ |
952 | for (i = 0; i < ARRAY_SIZE(ab3100_devs); i++) { | 952 | for (i = 0; i < ARRAY_SIZE(ab3100_devs); i++) |
953 | ab3100_devs[i].platform_data = ab3100_plf_data; | 953 | ab3100_devs[i].platform_data = ab3100_plf_data; |
954 | ab3100_devs[i].data_size = sizeof(struct ab3100_platform_data); | ||
955 | } | ||
956 | 954 | ||
957 | err = mfd_add_devices(&client->dev, 0, ab3100_devs, | 955 | err = mfd_add_devices(&client->dev, 0, ab3100_devs, |
958 | ARRAY_SIZE(ab3100_devs), NULL, 0); | 956 | ARRAY_SIZE(ab3100_devs), NULL, 0); |