mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 08:34:20 +08:00
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>
This commit is contained in:
parent
e42617b825
commit
4b1ca3a404
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user