diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2006-03-28 07:15:54 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-03-28 07:15:54 -0500 |
commit | e8222502ee6157e2713da9e0792c21f4ad458d50 (patch) | |
tree | 0f970fb99912c257a7e5254f863a53f79d22ab14 /drivers/usb | |
parent | 056cb48a2fb6fb31debf665695a9f97b45cfb8ec (diff) |
[PATCH] powerpc: Kill _machine and hard-coded platform numbers
This removes statically assigned platform numbers and reworks the
powerpc platform probe code to use a better mechanism. With this,
board support files can simply declare a new machine type with a
macro, and implement a probe() function that uses the flattened
device-tree to detect if they apply for a given machine.
We now have a machine_is() macro that replaces the comparisons of
_machine with the various PLATFORM_* constants. This commit also
changes various drivers to use the new macro instead of looking at
_machine.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/core/hcd-pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/hcd-pci.c b/drivers/usb/core/hcd-pci.c index e0afb5ad29e5..0d2193b69235 100644 --- a/drivers/usb/core/hcd-pci.c +++ b/drivers/usb/core/hcd-pci.c | |||
@@ -296,7 +296,7 @@ done: | |||
296 | 296 | ||
297 | #ifdef CONFIG_PPC_PMAC | 297 | #ifdef CONFIG_PPC_PMAC |
298 | /* Disable ASIC clocks for USB */ | 298 | /* Disable ASIC clocks for USB */ |
299 | if (_machine == _MACH_Pmac) { | 299 | if (machine_is(powermac)) { |
300 | struct device_node *of_node; | 300 | struct device_node *of_node; |
301 | 301 | ||
302 | of_node = pci_device_to_OF_node (dev); | 302 | of_node = pci_device_to_OF_node (dev); |
@@ -331,7 +331,7 @@ int usb_hcd_pci_resume (struct pci_dev *dev) | |||
331 | 331 | ||
332 | #ifdef CONFIG_PPC_PMAC | 332 | #ifdef CONFIG_PPC_PMAC |
333 | /* Reenable ASIC clocks for USB */ | 333 | /* Reenable ASIC clocks for USB */ |
334 | if (_machine == _MACH_Pmac) { | 334 | if (machine_is(powermac)) { |
335 | struct device_node *of_node; | 335 | struct device_node *of_node; |
336 | 336 | ||
337 | of_node = pci_device_to_OF_node (dev); | 337 | of_node = pci_device_to_OF_node (dev); |