mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
mfd: vexpress: Give the "leds-gpio" device a real parent
The registration of the "leds-gpio" device was using "vexpress_sysreg_dev" as a parent before it was actually set to something different than NULL. Trivial fix by reordering the code. Reported-by: Lorenzo Pieralisi <[email protected]> Signed-off-by: Pawel Moll <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
1 parent
caa62d6426
commit
b99877f3f7
1 file changed
+2
-2
@@ -490,12 +490,12 @@ static int vexpress_sysreg_probe(struct platform_device *pdev)
|
||||
return err;
|
||||
}
|
||||
|
||||
vexpress_sysreg_dev = &pdev->dev;
|
||||
|
||||
platform_device_register_data(vexpress_sysreg_dev, "leds-gpio",
|
||||
PLATFORM_DEVID_AUTO, &vexpress_sysreg_leds_pdata,
|
||||
sizeof(vexpress_sysreg_leds_pdata));
|
||||
|
||||
vexpress_sysreg_dev = &pdev->dev;
|
||||
|
||||
device_create_file(vexpress_sysreg_dev, &dev_attr_sys_id);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user