From: Mark Brown Date: Tue, 8 May 2012 17:08:43 +0000 (+0100) Subject: regulator: dummy: Specify a struct device X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0f82b6cf76516063fe26dac15e93544387c681eb;p=linux-beck.git regulator: dummy: Specify a struct device This will be becoming mandatory. Signed-off-by: Mark Brown Acked-by: Liam Girdwood --- diff --git a/drivers/regulator/dummy.c b/drivers/regulator/dummy.c index 1571bee6b1bc..86f655c7f7a1 100644 --- a/drivers/regulator/dummy.c +++ b/drivers/regulator/dummy.c @@ -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);