diff options
Diffstat (limited to 'drivers/mfd/htc-pasic3.c')
-rw-r--r-- | drivers/mfd/htc-pasic3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/htc-pasic3.c b/drivers/mfd/htc-pasic3.c index 386da1566fcc..cb73051e43db 100644 --- a/drivers/mfd/htc-pasic3.c +++ b/drivers/mfd/htc-pasic3.c | |||
@@ -35,7 +35,7 @@ struct pasic3_data { | |||
35 | */ | 35 | */ |
36 | void pasic3_write_register(struct device *dev, u32 reg, u8 val) | 36 | void pasic3_write_register(struct device *dev, u32 reg, u8 val) |
37 | { | 37 | { |
38 | struct pasic3_data *asic = dev->driver_data; | 38 | struct pasic3_data *asic = dev_get_drvdata(dev); |
39 | int bus_shift = asic->bus_shift; | 39 | int bus_shift = asic->bus_shift; |
40 | void __iomem *addr = asic->mapping + (REG_ADDR << bus_shift); | 40 | void __iomem *addr = asic->mapping + (REG_ADDR << bus_shift); |
41 | void __iomem *data = asic->mapping + (REG_DATA << bus_shift); | 41 | void __iomem *data = asic->mapping + (REG_DATA << bus_shift); |
@@ -50,7 +50,7 @@ EXPORT_SYMBOL(pasic3_write_register); /* for leds-pasic3 */ | |||
50 | */ | 50 | */ |
51 | u8 pasic3_read_register(struct device *dev, u32 reg) | 51 | u8 pasic3_read_register(struct device *dev, u32 reg) |
52 | { | 52 | { |
53 | struct pasic3_data *asic = dev->driver_data; | 53 | struct pasic3_data *asic = dev_get_drvdata(dev); |
54 | int bus_shift = asic->bus_shift; | 54 | int bus_shift = asic->bus_shift; |
55 | void __iomem *addr = asic->mapping + (REG_ADDR << bus_shift); | 55 | void __iomem *addr = asic->mapping + (REG_ADDR << bus_shift); |
56 | void __iomem *data = asic->mapping + (REG_DATA << bus_shift); | 56 | void __iomem *data = asic->mapping + (REG_DATA << bus_shift); |