mfd: Remove driver_data field from mfd_cell
authorAndres Salomon <dilinger@queued.net>
Fri, 18 Feb 2011 03:07:33 +0000 (19:07 -0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 23 Mar 2011 09:41:58 +0000 (10:41 +0100)
All users of this have now been switched over to using mfd_data;
it can go away now.

Signed-off-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/mfd-core.c
include/linux/mfd/core.h

index 21a39dc64ea0dc00e25d14b7abb4783eecab4819..01115f686dfad934ed483bcff06c95a091e08794 100644 (file)
@@ -37,7 +37,6 @@ static int mfd_add_device(struct device *parent, int id,
                goto fail_device;
 
        pdev->dev.parent = parent;
-       platform_set_drvdata(pdev, cell->driver_data);
 
        ret = platform_device_add_data(pdev, cell, sizeof(*cell));
        if (ret)
index f317fe4f83667b039db89ca21b6fefbd0c27f3c5..71cd1f983cce7b954c36d124124c957feb78c1d6 100644 (file)
@@ -30,9 +30,6 @@ struct mfd_cell {
        int                     (*suspend)(struct platform_device *dev);
        int                     (*resume)(struct platform_device *dev);
 
-       /* driver-specific data for MFD-aware "cell" drivers */
-       void                    *driver_data;
-
        /* mfd_data can be used to pass data to client drivers */
        void                    *mfd_data;