diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-07-22 18:04:30 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-07-24 11:58:22 -0400 |
commit | cd4cd7306a403f62ef3ca783b9d1cf2a03e595ed (patch) | |
tree | 2eceb6990f5a0097f158c91316ee93fc2db5282d /arch/sparc/kernel/pci.c | |
parent | a454dc50590c6d758abba016a303a221f2f1b4b8 (diff) |
sparc: remove references to of_device and to_of_device
of_device is just a #define alias to platform_device. This patch
replaces all references to it with platform_device.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/pci.c')
-rw-r--r-- | arch/sparc/kernel/pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/kernel/pci.c b/arch/sparc/kernel/pci.c index 1523290db0a1..4137579d9adc 100644 --- a/arch/sparc/kernel/pci.c +++ b/arch/sparc/kernel/pci.c | |||
@@ -198,7 +198,7 @@ static unsigned long pci_parse_of_flags(u32 addr0) | |||
198 | * into physical address resources, we only have to figure out the register | 198 | * into physical address resources, we only have to figure out the register |
199 | * mapping. | 199 | * mapping. |
200 | */ | 200 | */ |
201 | static void pci_parse_of_addrs(struct of_device *op, | 201 | static void pci_parse_of_addrs(struct platform_device *op, |
202 | struct device_node *node, | 202 | struct device_node *node, |
203 | struct pci_dev *dev) | 203 | struct pci_dev *dev) |
204 | { | 204 | { |
@@ -248,7 +248,7 @@ static struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm, | |||
248 | { | 248 | { |
249 | struct dev_archdata *sd; | 249 | struct dev_archdata *sd; |
250 | struct pci_slot *slot; | 250 | struct pci_slot *slot; |
251 | struct of_device *op; | 251 | struct platform_device *op; |
252 | struct pci_dev *dev; | 252 | struct pci_dev *dev; |
253 | const char *type; | 253 | const char *type; |
254 | u32 class; | 254 | u32 class; |