diff options
Diffstat (limited to 'arch/arm/mach-s3c2410/pwm.c')
-rw-r--r-- | arch/arm/mach-s3c2410/pwm.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2410/pwm.c b/arch/arm/mach-s3c2410/pwm.c index 9528d7aab63..a171d3ceff7 100644 --- a/arch/arm/mach-s3c2410/pwm.c +++ b/arch/arm/mach-s3c2410/pwm.c @@ -223,8 +223,18 @@ EXPORT_SYMBOL_GPL(s3c2410_pwm_dumpregs); static int __init s3c24xx_pwm_probe(struct platform_device *pdev) { + struct s3c24xx_pwm_platform_data *pdata = pdev->dev.platform_data; + dev_info(&pdev->dev, "s3c24xx_pwm is registered \n"); + /* if platform was interested, give him a chance to register + * platform devices that switch power with us as the parent + * at registration time -- ensures suspend / resume ordering + */ + if (pdata) + if (pdata->attach_child_devices) + (pdata->attach_child_devices)(&pdev->dev); + return 0; } |