diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2011-06-10 01:52:57 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-07-08 00:21:35 -0500 |
commit | a77ce8167cc1d0370fcb1d79b367d62e050cb2b0 (patch) | |
tree | dcc1ad81d57546e066edbaddb9f6ebbd70e1c6a5 /include/linux/platform_device.h | |
parent | 3160b09796129abc9523ea3cd1633b0faba64a02 (diff) | |
download | linux-a77ce8167cc1d0370fcb1d79b367d62e050cb2b0.tar.gz linux-a77ce8167cc1d0370fcb1d79b367d62e050cb2b0.tar.bz2 linux-a77ce8167cc1d0370fcb1d79b367d62e050cb2b0.zip |
driver core: Add ability for arch code to setup pdev_archdata
On some architectures we need to setup pdev_archdata before we add the
device. Waiting til a bus_notifier is too late since we might need the
pdev_archdata in the bus notifier. One example is setting up of dma_mask
pointers such that it can be used in a bus_notifier.
We add weak noop version of arch_setup_pdev_archdata() and allow the arch
code to override with access the full definitions of struct device,
struct platform_device, and struct pdev_archdata.
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include/linux/platform_device.h')
-rw-r--r-- | include/linux/platform_device.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h index ede1a80e3358..27bb05aae70d 100644 --- a/include/linux/platform_device.h +++ b/include/linux/platform_device.h @@ -42,6 +42,7 @@ extern void platform_device_unregister(struct platform_device *); extern struct bus_type platform_bus_type; extern struct device platform_bus; +extern void arch_setup_pdev_archdata(struct platform_device *); extern struct resource *platform_get_resource(struct platform_device *, unsigned int, unsigned int); extern int platform_get_irq(struct platform_device *, unsigned int); extern struct resource *platform_get_resource_byname(struct platform_device *, unsigned int, const char *); |