diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2019-12-18 14:28:26 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2020-01-07 10:08:30 +0000 |
commit | 4b1ca3a4041093930c516f3e7bfe443fb5202107 (patch) | |
tree | 7c018b14d9762ffba3447b79147855d4a02489e5 /drivers/mfd/atmel-hlcdc.c | |
parent | e42617b825f8073569da76dc4510bfa019b1c35a (diff) |
mfd: atmel-hlcdc: Add struct device member to struct atmel_hlcdc_regmap
Add struct device member to struct atmel_hlcdc_regmap to be
able to use dev_*() specific logging functions.
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/atmel-hlcdc.c')
-rw-r--r-- | drivers/mfd/atmel-hlcdc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mfd/atmel-hlcdc.c b/drivers/mfd/atmel-hlcdc.c index 64013c57a920..92bfcaa62ace 100644 --- a/drivers/mfd/atmel-hlcdc.c +++ b/drivers/mfd/atmel-hlcdc.c @@ -19,6 +19,7 @@ struct atmel_hlcdc_regmap { void __iomem *regs; + struct device *dev; }; static const struct mfd_cell atmel_hlcdc_cells[] = { @@ -90,6 +91,8 @@ static int atmel_hlcdc_probe(struct platform_device *pdev) if (IS_ERR(hregmap->regs)) return PTR_ERR(hregmap->regs); + hregmap->dev = &pdev->dev; + hlcdc->irq = platform_get_irq(pdev, 0); if (hlcdc->irq < 0) return hlcdc->irq; |