diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-06-08 09:48:13 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-07-05 18:14:28 -0400 |
commit | 34a1c1e8c700f7cd849deb21193718a172722f8d (patch) | |
tree | 8cb17243ca49acda328f3561d55b6d3d2f62f0d2 /arch/microblaze | |
parent | dd27dcda37f0b1a3b674760fb411abc5c8fe309c (diff) |
of: Modify of_device_get_modalias to be passed struct device
Now that the of_node pointer is part of struct device,
of_device_get_modalias could be used on any struct device
that has the device node pointer set. This patch changes
of_device_get_modalias to accept a struct device instead
of a struct of_device.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
CC: Michal Simek <monstr@monstr.eu>
CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: Wolfram Sang <w.sang@pengutronix.de>
CC: Stephen Rothwell <sfr@canb.auug.org.au>
CC: microblaze-uclinux@itee.uq.edu.au
CC: linuxppc-dev@ozlabs.org
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/include/asm/of_device.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/microblaze/include/asm/of_device.h b/arch/microblaze/include/asm/of_device.h index 58e627dc1412..c9be53487434 100644 --- a/arch/microblaze/include/asm/of_device.h +++ b/arch/microblaze/include/asm/of_device.h | |||
@@ -15,9 +15,6 @@ | |||
15 | #include <linux/device.h> | 15 | #include <linux/device.h> |
16 | #include <linux/of.h> | 16 | #include <linux/of.h> |
17 | 17 | ||
18 | extern ssize_t of_device_get_modalias(struct of_device *ofdev, | ||
19 | char *str, ssize_t len); | ||
20 | |||
21 | extern struct of_device *of_device_alloc(struct device_node *np, | 18 | extern struct of_device *of_device_alloc(struct device_node *np, |
22 | const char *bus_id, | 19 | const char *bus_id, |
23 | struct device *parent); | 20 | struct device *parent); |