mfd: atmel-hlcdc: Add struct device member to struct atmel_hlcdc_regmap
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 18 Dec 2019 12:28:26 +0000 (14:28 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 7 Jan 2020 10:08:30 +0000 (10:08 +0000)
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>
drivers/mfd/atmel-hlcdc.c

index 64013c57a920f9c8a62fd17c5998772cedd9a80d..92bfcaa62aceebb3f09fdf83876d7e8270d90c64 100644 (file)
@@ -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;