backlight: pcf50633: Register a pcf50633-backlight device in pcf50633 core driver.

Register a device newly added pcf50633-backlight driver as a child device in
the pcf50633 core driver.

Signed-off-by: Lars-Peter Clausen <[email protected]>
Acked-by: Samuel Ortiz <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
This commit is contained in:
Lars-Peter Clausen 2010-05-12 02:44:33 +02:00 • committed by Richard Purdie
commit f5bf403a9d
2 changed files with 7 additions and 0 deletions

View file

@ -620,6 +620,9 @@ static int __devinit pcf50633_probe(struct i2c_client *client,
&pcf->mbc_pdev);
pcf50633_client_dev_register(pcf, "pcf50633-adc",
&pcf->adc_pdev);
pcf50633_client_dev_register(pcf, "pcf50633-backlight",
&pcf->bl_pdev);
for (i = 0; i < PCF50633_NUM_REGULATORS; i++) {
struct platform_device *pdev;