Skip to contentSkip to conversation

regulator: Initialise wm831x structure pointor for ISINK driver

PATCH Applied Mark Brown 2 participants 2 messages Nov 30, 2009 – Dec 2, 2009

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 regulator: Initialise wm831x structure pointor for ISINK driver

The version that made it into mainline missed the initialisation of the chip handle.

---
 drivers/regulator/wm831x-isink.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/regulator/wm831x-isink.c +2 -0
index 1d8d987..4885700 100644
@@ -167,6 +167,8 @@ static __devinit int wm831x_isink_probe(struct platform_device *pdev)
 		return -ENOMEM;
 	}
 
+	isink->wm831x = wm831x;
+
 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
 	if (res == NULL) {
 		dev_err(&pdev->dev, "No I/O resource\n");
Signature · 1 line
1.6.5.3
#1 lore raw
Quoted 13 lines · Mark Brown

The version that made it into mainline missed the initialisation of the chip handle.

---
 drivers/regulator/wm831x-isink.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/regulator/wm831x-isink.c +0 -0
index 1d8d987..4885700 100644

drivers/regulator/wm831x-isink.c static __devinit int wm831x_isink_probe(struct platform_device *pdev) · line 174

Quoted 8 lines
drivers/regulator/wm831x-isink.c +2 -0
@@ -167,6 +167,8 @@ static __devinit int wm831x_isink_probe(struct platform_device *pdev)
 		return -ENOMEM;
 	}
 
+	isink->wm831x = wm831x;
+
 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
 	if (res == NULL) {
 		dev_err(&pdev->dev, "No I/O resource\n");

Applied.

Thanks

Liam