regulator: dummy: Specify a struct device
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 8 May 2012 17:08:43 +0000 (18:08 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 10 May 2012 09:48:28 +0000 (10:48 +0100)
This will be becoming mandatory.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
drivers/regulator/dummy.c

index 1571bee6b1bc3e0cf4ef2c9204c73447102d5241..86f655c7f7a14ac5df494bcb5dcf3fb4b7e83955 100644 (file)
@@ -42,6 +42,7 @@ static int __devinit dummy_regulator_probe(struct platform_device *pdev)
        struct regulator_config config = { };
        int ret;
 
+       config.dev = &pdev->dev;
        config.init_data = &dummy_initdata;
 
        dummy_regulator_rdev = regulator_register(&dummy_desc, &config);