Skip to content

Commit dcb50e8

Browse files
dilingerSamuel Ortiz
authored andcommitted
mfd: Remove driver_data field from mfd_cell
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>
1 parent 46673ed commit dcb50e8

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

‎drivers/mfd/mfd-core.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ static int mfd_add_device(struct device *parent, int id,
3737
goto fail_device;
3838

3939
pdev->dev.parent = parent;
40-
platform_set_drvdata(pdev, cell->driver_data);
4140

4241
ret = platform_device_add_data(pdev, cell, sizeof(*cell));
4342
if (ret)

‎include/linux/mfd/core.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ struct mfd_cell {
3030
int (*suspend)(struct platform_device *dev);
3131
int (*resume)(struct platform_device *dev);
3232

33-
/* driver-specific data for MFD-aware "cell" drivers */
34-
void *driver_data;
35-
3633
/* mfd_data can be used to pass data to client drivers */
3734
void *mfd_data;
3835

0 commit comments

Comments
 (0)