浏览代码

regulator: Initialise wm831x structure pointor for ISINK driver

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

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Mark Brown 15 年之前
父节点
当前提交
e8092da92e
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/regulator/wm831x-isink.c

+ 2 - 0
drivers/regulator/wm831x-isink.c

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