diff options
author | Ben Dooks <ben-linux@fluff.org> | 2010-01-13 14:59:46 +0900 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-01-19 09:23:51 +0900 |
commit | f126752043c67003de6d34b14160f87ba0323c98 (patch) | |
tree | 383f3596e6b2ed862a5eed52e560404f95aa56e9 /arch/arm/plat-samsung/dev-usb.c | |
parent | 0a6361316d6493b9dcbdda9a6a4586c3ccbfd008 (diff) | |
download | op-kernel-dev-f126752043c67003de6d34b14160f87ba0323c98.zip op-kernel-dev-f126752043c67003de6d34b14160f87ba0323c98.tar.gz |
ARM: SAMSUNG: Add platform data registration for OHCI
Add a platform data helper for the OHCI device
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-samsung/dev-usb.c')
-rw-r--r-- | arch/arm/plat-samsung/dev-usb.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/arch/arm/plat-samsung/dev-usb.c b/arch/arm/plat-samsung/dev-usb.c index 431ae5d..8816565 100644 --- a/arch/arm/plat-samsung/dev-usb.c +++ b/arch/arm/plat-samsung/dev-usb.c @@ -19,7 +19,7 @@ #include <mach/map.h> #include <plat/devs.h> - +#include <plat/usb-control.h> static struct resource s3c_usb_resource[] = { [0] = { @@ -48,3 +48,22 @@ struct platform_device s3c_device_ohci = { }; EXPORT_SYMBOL(s3c_device_ohci); + +/** + * s3c_ohci_set_platdata - initialise OHCI device platform data + * @info: The platform data. + * + * This call copies the @info passed in and sets the device .platform_data + * field to that copy. The @info is copied so that the original can be marked + * __initdata. + */ +void __init s3c_ohci_set_platdata(struct s3c2410_hcd_info *info) +{ + struct s3c2410_hcd_info *npd; + + npd = kmemdup(info, sizeof(struct s3c2410_hcd_info), GFP_KERNEL); + if (!npd) + printk(KERN_ERR "%s: no memory for platform data\n", __func__); + + s3c_device_ohci.dev.platform_data = npd; +} |