diff options
author | Andres Salomon <dilinger@queued.net> | 2011-02-17 19:07:10 -0800 |
---|---|---|
committer | Nicolas Pitre <nicolas.pitre@linaro.org> | 2011-03-25 17:58:16 -0400 |
commit | 06121c7f63c79e26042aa1d38fe3957d21a24772 (patch) | |
tree | 8558a951ee1cd8f2d4d9ce0b617bee6e63ebc51a /drivers/hwmon | |
parent | 28977cc67fb187b02acc6294de63e944e022276a (diff) |
mfd: mfd_cell is now implicitly available to jz4740 drivers
No need to explicitly set the cell's platform_data/data_size.
Modify clients to use mfd_get_cell helper function instead of
accessing platform_data directly.
Signed-off-by: Andres Salomon <dilinger@queued.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
(cherry picked from commit 6a54ac2149ab5b8972bb4f77bd42b43dbeabb56f)
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/jz4740-hwmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/jz4740-hwmon.c b/drivers/hwmon/jz4740-hwmon.c index 1c8b3d9e205..40f106d95af 100644 --- a/drivers/hwmon/jz4740-hwmon.c +++ b/drivers/hwmon/jz4740-hwmon.c @@ -112,7 +112,7 @@ static int __devinit jz4740_hwmon_probe(struct platform_device *pdev) return -ENOMEM; } - hwmon->cell = pdev->dev.platform_data; + hwmon->cell = mfd_get_cell(pdev); hwmon->irq = platform_get_irq(pdev, 0); if (hwmon->irq < 0) { |