diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/generic_nvram.c | 5 | ||||
-rw-r--r-- | drivers/ide/pci/via82cxxx.c | 2 | ||||
-rw-r--r-- | drivers/ide/ppc/pmac.c | 2 | ||||
-rw-r--r-- | drivers/ieee1394/ohci1394.c | 4 | ||||
-rw-r--r-- | drivers/macintosh/adb.c | 3 | ||||
-rw-r--r-- | drivers/macintosh/adbhid.c | 4 | ||||
-rw-r--r-- | drivers/macintosh/mediabay.c | 4 | ||||
-rw-r--r-- | drivers/media/video/planb.c | 2 | ||||
-rw-r--r-- | drivers/net/tulip/de4x5.c | 2 | ||||
-rw-r--r-- | drivers/scsi/mesh.c | 2 | ||||
-rw-r--r-- | drivers/usb/core/hcd-pci.c | 4 | ||||
-rw-r--r-- | drivers/video/aty/aty128fb.c | 7 | ||||
-rw-r--r-- | drivers/video/aty/atyfb_base.c | 7 | ||||
-rw-r--r-- | drivers/video/aty/radeon_pm.c | 4 | ||||
-rw-r--r-- | drivers/video/cirrusfb.c | 4 | ||||
-rw-r--r-- | drivers/video/matrox/matroxfb_base.c | 3 | ||||
-rw-r--r-- | drivers/video/nvidia/nvidia.c | 5 | ||||
-rw-r--r-- | drivers/video/radeonfb.c | 2 | ||||
-rw-r--r-- | drivers/video/riva/fbdev.c | 9 |
19 files changed, 42 insertions, 33 deletions
diff --git a/drivers/char/generic_nvram.c b/drivers/char/generic_nvram.c index 1b5e01e6e129..43ff59816511 100644 --- a/drivers/char/generic_nvram.c +++ b/drivers/char/generic_nvram.c | |||
@@ -22,6 +22,9 @@ | |||
22 | #include <linux/smp_lock.h> | 22 | #include <linux/smp_lock.h> |
23 | #include <asm/uaccess.h> | 23 | #include <asm/uaccess.h> |
24 | #include <asm/nvram.h> | 24 | #include <asm/nvram.h> |
25 | #ifdef CONFIG_PPC_PMAC | ||
26 | #include <asm/machdep.h> | ||
27 | #endif | ||
25 | 28 | ||
26 | #define NVRAM_SIZE 8192 | 29 | #define NVRAM_SIZE 8192 |
27 | 30 | ||
@@ -92,7 +95,7 @@ static int nvram_ioctl(struct inode *inode, struct file *file, | |||
92 | case IOC_NVRAM_GET_OFFSET: { | 95 | case IOC_NVRAM_GET_OFFSET: { |
93 | int part, offset; | 96 | int part, offset; |
94 | 97 | ||
95 | if (_machine != _MACH_Pmac) | 98 | if (!machine_is(powermac)) |
96 | return -EINVAL; | 99 | return -EINVAL; |
97 | if (copy_from_user(&part, (void __user*)arg, sizeof(part)) != 0) | 100 | if (copy_from_user(&part, (void __user*)arg, sizeof(part)) != 0) |
98 | return -EFAULT; | 101 | return -EFAULT; |
diff --git a/drivers/ide/pci/via82cxxx.c b/drivers/ide/pci/via82cxxx.c index c85b87cb59d1..3e677c4f8c28 100644 --- a/drivers/ide/pci/via82cxxx.c +++ b/drivers/ide/pci/via82cxxx.c | |||
@@ -440,7 +440,7 @@ static void __devinit init_hwif_via82cxxx(ide_hwif_t *hwif) | |||
440 | 440 | ||
441 | 441 | ||
442 | #if defined(CONFIG_PPC_CHRP) && defined(CONFIG_PPC32) | 442 | #if defined(CONFIG_PPC_CHRP) && defined(CONFIG_PPC32) |
443 | if(_machine == _MACH_chrp && _chrp_type == _CHRP_Pegasos) { | 443 | if(machine_is(chrp) && _chrp_type == _CHRP_Pegasos) { |
444 | hwif->irq = hwif->channel ? 15 : 14; | 444 | hwif->irq = hwif->channel ? 15 : 14; |
445 | } | 445 | } |
446 | #endif | 446 | #endif |
diff --git a/drivers/ide/ppc/pmac.c b/drivers/ide/ppc/pmac.c index 5013b1285e22..78e30f803671 100644 --- a/drivers/ide/ppc/pmac.c +++ b/drivers/ide/ppc/pmac.c | |||
@@ -1677,7 +1677,7 @@ MODULE_DEVICE_TABLE(pci, pmac_ide_pci_match); | |||
1677 | void __init | 1677 | void __init |
1678 | pmac_ide_probe(void) | 1678 | pmac_ide_probe(void) |
1679 | { | 1679 | { |
1680 | if (_machine != _MACH_Pmac) | 1680 | if (!machine_is(powermac)) |
1681 | return; | 1681 | return; |
1682 | 1682 | ||
1683 | #ifdef CONFIG_BLK_DEV_IDE_PMAC_ATA100FIRST | 1683 | #ifdef CONFIG_BLK_DEV_IDE_PMAC_ATA100FIRST |
diff --git a/drivers/ieee1394/ohci1394.c b/drivers/ieee1394/ohci1394.c index b6b96fa04d62..314f35540034 100644 --- a/drivers/ieee1394/ohci1394.c +++ b/drivers/ieee1394/ohci1394.c | |||
@@ -3526,7 +3526,7 @@ static void ohci1394_pci_remove(struct pci_dev *pdev) | |||
3526 | static int ohci1394_pci_resume (struct pci_dev *pdev) | 3526 | static int ohci1394_pci_resume (struct pci_dev *pdev) |
3527 | { | 3527 | { |
3528 | #ifdef CONFIG_PPC_PMAC | 3528 | #ifdef CONFIG_PPC_PMAC |
3529 | if (_machine == _MACH_Pmac) { | 3529 | if (machine_is(powermac)) { |
3530 | struct device_node *of_node; | 3530 | struct device_node *of_node; |
3531 | 3531 | ||
3532 | /* Re-enable 1394 */ | 3532 | /* Re-enable 1394 */ |
@@ -3545,7 +3545,7 @@ static int ohci1394_pci_resume (struct pci_dev *pdev) | |||
3545 | static int ohci1394_pci_suspend (struct pci_dev *pdev, pm_message_t state) | 3545 | static int ohci1394_pci_suspend (struct pci_dev *pdev, pm_message_t state) |
3546 | { | 3546 | { |
3547 | #ifdef CONFIG_PPC_PMAC | 3547 | #ifdef CONFIG_PPC_PMAC |
3548 | if (_machine == _MACH_Pmac) { | 3548 | if (machine_is(powermac)) { |
3549 | struct device_node *of_node; | 3549 | struct device_node *of_node; |
3550 | 3550 | ||
3551 | /* Disable 1394 */ | 3551 | /* Disable 1394 */ |
diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/adb.c index d2ead1776c16..781d93b0bbd5 100644 --- a/drivers/macintosh/adb.c +++ b/drivers/macintosh/adb.c | |||
@@ -42,6 +42,7 @@ | |||
42 | #include <asm/semaphore.h> | 42 | #include <asm/semaphore.h> |
43 | #ifdef CONFIG_PPC | 43 | #ifdef CONFIG_PPC |
44 | #include <asm/prom.h> | 44 | #include <asm/prom.h> |
45 | #include <asm/machdep.h> | ||
45 | #endif | 46 | #endif |
46 | 47 | ||
47 | 48 | ||
@@ -294,7 +295,7 @@ int __init adb_init(void) | |||
294 | int i; | 295 | int i; |
295 | 296 | ||
296 | #ifdef CONFIG_PPC32 | 297 | #ifdef CONFIG_PPC32 |
297 | if ( (_machine != _MACH_chrp) && (_machine != _MACH_Pmac) ) | 298 | if (!machine_is(chrp) && !machine_is(powermac)) |
298 | return 0; | 299 | return 0; |
299 | #endif | 300 | #endif |
300 | #ifdef CONFIG_MAC | 301 | #ifdef CONFIG_MAC |
diff --git a/drivers/macintosh/adbhid.c b/drivers/macintosh/adbhid.c index c0b46bceb5df..0a4c680d4ac0 100644 --- a/drivers/macintosh/adbhid.c +++ b/drivers/macintosh/adbhid.c | |||
@@ -1206,8 +1206,8 @@ init_ms_a3(int id) | |||
1206 | static int __init adbhid_init(void) | 1206 | static int __init adbhid_init(void) |
1207 | { | 1207 | { |
1208 | #ifndef CONFIG_MAC | 1208 | #ifndef CONFIG_MAC |
1209 | if ( (_machine != _MACH_chrp) && (_machine != _MACH_Pmac) ) | 1209 | if (!machine_is(chrp) && !machine_is(powermac)) |
1210 | return 0; | 1210 | return 0; |
1211 | #endif | 1211 | #endif |
1212 | 1212 | ||
1213 | led_request.complete = 1; | 1213 | led_request.complete = 1; |
diff --git a/drivers/macintosh/mediabay.c b/drivers/macintosh/mediabay.c index 8dbf2852bae0..53c1c7909413 100644 --- a/drivers/macintosh/mediabay.c +++ b/drivers/macintosh/mediabay.c | |||
@@ -839,8 +839,8 @@ static int __init media_bay_init(void) | |||
839 | media_bays[i].cd_index = -1; | 839 | media_bays[i].cd_index = -1; |
840 | #endif | 840 | #endif |
841 | } | 841 | } |
842 | if (_machine != _MACH_Pmac) | 842 | if (!machine_is(powermac)) |
843 | return -ENODEV; | 843 | return 0; |
844 | 844 | ||
845 | macio_register_driver(&media_bay_driver); | 845 | macio_register_driver(&media_bay_driver); |
846 | 846 | ||
diff --git a/drivers/media/video/planb.c b/drivers/media/video/planb.c index 522e9ddeb089..d9e3cada52f4 100644 --- a/drivers/media/video/planb.c +++ b/drivers/media/video/planb.c | |||
@@ -2156,7 +2156,7 @@ static int find_planb(void) | |||
2156 | struct pci_dev *pdev; | 2156 | struct pci_dev *pdev; |
2157 | int rc; | 2157 | int rc; |
2158 | 2158 | ||
2159 | if (_machine != _MACH_Pmac) | 2159 | if (!machine_is(powermac)) |
2160 | return 0; | 2160 | return 0; |
2161 | 2161 | ||
2162 | planb_devices = find_devices("planb"); | 2162 | planb_devices = find_devices("planb"); |
diff --git a/drivers/net/tulip/de4x5.c b/drivers/net/tulip/de4x5.c index ee48bfd67349..46d087c5467b 100644 --- a/drivers/net/tulip/de4x5.c +++ b/drivers/net/tulip/de4x5.c | |||
@@ -4160,7 +4160,7 @@ get_hw_addr(struct net_device *dev) | |||
4160 | ** If the address starts with 00 a0, we have to bit-reverse | 4160 | ** If the address starts with 00 a0, we have to bit-reverse |
4161 | ** each byte of the address. | 4161 | ** each byte of the address. |
4162 | */ | 4162 | */ |
4163 | if ( (_machine & _MACH_Pmac) && | 4163 | if ( machine_is(powermac) && |
4164 | (dev->dev_addr[0] == 0) && | 4164 | (dev->dev_addr[0] == 0) && |
4165 | (dev->dev_addr[1] == 0xa0) ) | 4165 | (dev->dev_addr[1] == 0xa0) ) |
4166 | { | 4166 | { |
diff --git a/drivers/scsi/mesh.c b/drivers/scsi/mesh.c index d6d2125f9044..f852421002ef 100644 --- a/drivers/scsi/mesh.c +++ b/drivers/scsi/mesh.c | |||
@@ -1748,7 +1748,7 @@ static int mesh_host_reset(struct scsi_cmnd *cmd) | |||
1748 | 1748 | ||
1749 | static void set_mesh_power(struct mesh_state *ms, int state) | 1749 | static void set_mesh_power(struct mesh_state *ms, int state) |
1750 | { | 1750 | { |
1751 | if (_machine != _MACH_Pmac) | 1751 | if (!machine_is(powermac)) |
1752 | return; | 1752 | return; |
1753 | if (state) { | 1753 | if (state) { |
1754 | pmac_call_feature(PMAC_FTR_MESH_ENABLE, macio_get_of_node(ms->mdev), 0, 1); | 1754 | pmac_call_feature(PMAC_FTR_MESH_ENABLE, macio_get_of_node(ms->mdev), 0, 1); |
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); |
diff --git a/drivers/video/aty/aty128fb.c b/drivers/video/aty/aty128fb.c index 620c9a934e0e..f07be22e119d 100644 --- a/drivers/video/aty/aty128fb.c +++ b/drivers/video/aty/aty128fb.c | |||
@@ -67,6 +67,7 @@ | |||
67 | #include <asm/io.h> | 67 | #include <asm/io.h> |
68 | 68 | ||
69 | #ifdef CONFIG_PPC_PMAC | 69 | #ifdef CONFIG_PPC_PMAC |
70 | #include <asm/machdep.h> | ||
70 | #include <asm/pmac_feature.h> | 71 | #include <asm/pmac_feature.h> |
71 | #include <asm/prom.h> | 72 | #include <asm/prom.h> |
72 | #include <asm/pci-bridge.h> | 73 | #include <asm/pci-bridge.h> |
@@ -1748,7 +1749,7 @@ static int __init aty128_init(struct pci_dev *pdev, const struct pci_device_id * | |||
1748 | 1749 | ||
1749 | var = default_var; | 1750 | var = default_var; |
1750 | #ifdef CONFIG_PPC_PMAC | 1751 | #ifdef CONFIG_PPC_PMAC |
1751 | if (_machine == _MACH_Pmac) { | 1752 | if (machine_is(powermac)) { |
1752 | /* Indicate sleep capability */ | 1753 | /* Indicate sleep capability */ |
1753 | if (par->chip_gen == rage_M3) { | 1754 | if (par->chip_gen == rage_M3) { |
1754 | pmac_call_feature(PMAC_FTR_DEVICE_CAN_WAKE, NULL, 0, 1); | 1755 | pmac_call_feature(PMAC_FTR_DEVICE_CAN_WAKE, NULL, 0, 1); |
@@ -2011,7 +2012,7 @@ static int aty128fb_blank(int blank, struct fb_info *fb) | |||
2011 | return 0; | 2012 | return 0; |
2012 | 2013 | ||
2013 | #ifdef CONFIG_PMAC_BACKLIGHT | 2014 | #ifdef CONFIG_PMAC_BACKLIGHT |
2014 | if ((_machine == _MACH_Pmac) && blank) | 2015 | if (machine_is(powermac) && blank) |
2015 | set_backlight_enable(0); | 2016 | set_backlight_enable(0); |
2016 | #endif /* CONFIG_PMAC_BACKLIGHT */ | 2017 | #endif /* CONFIG_PMAC_BACKLIGHT */ |
2017 | 2018 | ||
@@ -2029,7 +2030,7 @@ static int aty128fb_blank(int blank, struct fb_info *fb) | |||
2029 | aty128_set_lcd_enable(par, par->lcd_on && !blank); | 2030 | aty128_set_lcd_enable(par, par->lcd_on && !blank); |
2030 | } | 2031 | } |
2031 | #ifdef CONFIG_PMAC_BACKLIGHT | 2032 | #ifdef CONFIG_PMAC_BACKLIGHT |
2032 | if ((_machine == _MACH_Pmac) && !blank) | 2033 | if (machine_is(powermac) && !blank) |
2033 | set_backlight_enable(1); | 2034 | set_backlight_enable(1); |
2034 | #endif /* CONFIG_PMAC_BACKLIGHT */ | 2035 | #endif /* CONFIG_PMAC_BACKLIGHT */ |
2035 | return 0; | 2036 | return 0; |
diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c index 485be386a8ff..1b1f24e2bfbe 100644 --- a/drivers/video/aty/atyfb_base.c +++ b/drivers/video/aty/atyfb_base.c | |||
@@ -75,6 +75,7 @@ | |||
75 | #include "ati_ids.h" | 75 | #include "ati_ids.h" |
76 | 76 | ||
77 | #ifdef __powerpc__ | 77 | #ifdef __powerpc__ |
78 | #include <asm/machdep.h> | ||
78 | #include <asm/prom.h> | 79 | #include <asm/prom.h> |
79 | #include "../macmodes.h" | 80 | #include "../macmodes.h" |
80 | #endif | 81 | #endif |
@@ -2516,7 +2517,7 @@ static int __init aty_init(struct fb_info *info, const char *name) | |||
2516 | 2517 | ||
2517 | memset(&var, 0, sizeof(var)); | 2518 | memset(&var, 0, sizeof(var)); |
2518 | #ifdef CONFIG_PPC | 2519 | #ifdef CONFIG_PPC |
2519 | if (_machine == _MACH_Pmac) { | 2520 | if (machine_is(powermac)) { |
2520 | /* | 2521 | /* |
2521 | * FIXME: The NVRAM stuff should be put in a Mac-specific file, as it | 2522 | * FIXME: The NVRAM stuff should be put in a Mac-specific file, as it |
2522 | * applies to all Mac video cards | 2523 | * applies to all Mac video cards |
@@ -2671,7 +2672,7 @@ static int atyfb_blank(int blank, struct fb_info *info) | |||
2671 | return 0; | 2672 | return 0; |
2672 | 2673 | ||
2673 | #ifdef CONFIG_PMAC_BACKLIGHT | 2674 | #ifdef CONFIG_PMAC_BACKLIGHT |
2674 | if ((_machine == _MACH_Pmac) && blank > FB_BLANK_NORMAL) | 2675 | if (machine_is(powermac) && blank > FB_BLANK_NORMAL) |
2675 | set_backlight_enable(0); | 2676 | set_backlight_enable(0); |
2676 | #elif defined(CONFIG_FB_ATY_GENERIC_LCD) | 2677 | #elif defined(CONFIG_FB_ATY_GENERIC_LCD) |
2677 | if (par->lcd_table && blank > FB_BLANK_NORMAL && | 2678 | if (par->lcd_table && blank > FB_BLANK_NORMAL && |
@@ -2703,7 +2704,7 @@ static int atyfb_blank(int blank, struct fb_info *info) | |||
2703 | aty_st_le32(CRTC_GEN_CNTL, gen_cntl, par); | 2704 | aty_st_le32(CRTC_GEN_CNTL, gen_cntl, par); |
2704 | 2705 | ||
2705 | #ifdef CONFIG_PMAC_BACKLIGHT | 2706 | #ifdef CONFIG_PMAC_BACKLIGHT |
2706 | if ((_machine == _MACH_Pmac) && blank <= FB_BLANK_NORMAL) | 2707 | if (machine_is(powermac) && blank <= FB_BLANK_NORMAL) |
2707 | set_backlight_enable(1); | 2708 | set_backlight_enable(1); |
2708 | #elif defined(CONFIG_FB_ATY_GENERIC_LCD) | 2709 | #elif defined(CONFIG_FB_ATY_GENERIC_LCD) |
2709 | if (par->lcd_table && blank <= FB_BLANK_NORMAL && | 2710 | if (par->lcd_table && blank <= FB_BLANK_NORMAL && |
diff --git a/drivers/video/aty/radeon_pm.c b/drivers/video/aty/radeon_pm.c index 5886a2f1323e..c7091761cef4 100644 --- a/drivers/video/aty/radeon_pm.c +++ b/drivers/video/aty/radeon_pm.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <linux/agp_backend.h> | 20 | #include <linux/agp_backend.h> |
21 | 21 | ||
22 | #ifdef CONFIG_PPC_PMAC | 22 | #ifdef CONFIG_PPC_PMAC |
23 | #include <asm/processor.h> | 23 | #include <asm/machdep.h> |
24 | #include <asm/prom.h> | 24 | #include <asm/prom.h> |
25 | #include <asm/pmac_feature.h> | 25 | #include <asm/pmac_feature.h> |
26 | #endif | 26 | #endif |
@@ -2745,7 +2745,7 @@ void radeonfb_pm_init(struct radeonfb_info *rinfo, int dynclk) | |||
2745 | rinfo->pm_mode |= radeon_pm_off; | 2745 | rinfo->pm_mode |= radeon_pm_off; |
2746 | } | 2746 | } |
2747 | #if defined(CONFIG_PPC_PMAC) | 2747 | #if defined(CONFIG_PPC_PMAC) |
2748 | if (_machine == _MACH_Pmac && rinfo->of_node) { | 2748 | if (machine_is(powermac) && rinfo->of_node) { |
2749 | if (rinfo->is_mobility && rinfo->pm_reg && | 2749 | if (rinfo->is_mobility && rinfo->pm_reg && |
2750 | rinfo->family <= CHIP_FAMILY_RV250) | 2750 | rinfo->family <= CHIP_FAMILY_RV250) |
2751 | rinfo->pm_mode |= radeon_pm_d2; | 2751 | rinfo->pm_mode |= radeon_pm_d2; |
diff --git a/drivers/video/cirrusfb.c b/drivers/video/cirrusfb.c index 66d6f2f0a219..1103010af54a 100644 --- a/drivers/video/cirrusfb.c +++ b/drivers/video/cirrusfb.c | |||
@@ -60,8 +60,8 @@ | |||
60 | #include <asm/amigahw.h> | 60 | #include <asm/amigahw.h> |
61 | #endif | 61 | #endif |
62 | #ifdef CONFIG_PPC_PREP | 62 | #ifdef CONFIG_PPC_PREP |
63 | #include <asm/processor.h> | 63 | #include <asm/machdep.h> |
64 | #define isPReP (_machine == _MACH_prep) | 64 | #define isPReP (machine_is(prep)) |
65 | #else | 65 | #else |
66 | #define isPReP 0 | 66 | #define isPReP 0 |
67 | #endif | 67 | #endif |
diff --git a/drivers/video/matrox/matroxfb_base.c b/drivers/video/matrox/matroxfb_base.c index 951c9974a1d3..23c1827b2d0b 100644 --- a/drivers/video/matrox/matroxfb_base.c +++ b/drivers/video/matrox/matroxfb_base.c | |||
@@ -115,6 +115,7 @@ | |||
115 | #include <asm/uaccess.h> | 115 | #include <asm/uaccess.h> |
116 | 116 | ||
117 | #ifdef CONFIG_PPC_PMAC | 117 | #ifdef CONFIG_PPC_PMAC |
118 | #include <asm/machdep.h> | ||
118 | unsigned char nvram_read_byte(int); | 119 | unsigned char nvram_read_byte(int); |
119 | static int default_vmode = VMODE_NVRAM; | 120 | static int default_vmode = VMODE_NVRAM; |
120 | static int default_cmode = CMODE_NVRAM; | 121 | static int default_cmode = CMODE_NVRAM; |
@@ -1833,7 +1834,7 @@ static int initMatrox2(WPMINFO struct board* b){ | |||
1833 | /* FIXME: Where to move this?! */ | 1834 | /* FIXME: Where to move this?! */ |
1834 | #if defined(CONFIG_PPC_PMAC) | 1835 | #if defined(CONFIG_PPC_PMAC) |
1835 | #ifndef MODULE | 1836 | #ifndef MODULE |
1836 | if (_machine == _MACH_Pmac) { | 1837 | if (machine_is(powermac)) { |
1837 | struct fb_var_screeninfo var; | 1838 | struct fb_var_screeninfo var; |
1838 | if (default_vmode <= 0 || default_vmode > VMODE_MAX) | 1839 | if (default_vmode <= 0 || default_vmode > VMODE_MAX) |
1839 | default_vmode = VMODE_640_480_60; | 1840 | default_vmode = VMODE_640_480_60; |
diff --git a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c index a7c4e5e8ead6..7258b3245316 100644 --- a/drivers/video/nvidia/nvidia.c +++ b/drivers/video/nvidia/nvidia.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <asm/pci-bridge.h> | 29 | #include <asm/pci-bridge.h> |
30 | #endif | 30 | #endif |
31 | #ifdef CONFIG_PMAC_BACKLIGHT | 31 | #ifdef CONFIG_PMAC_BACKLIGHT |
32 | #include <asm/machdep.h> | ||
32 | #include <asm/backlight.h> | 33 | #include <asm/backlight.h> |
33 | #endif | 34 | #endif |
34 | 35 | ||
@@ -1353,7 +1354,7 @@ static int nvidiafb_blank(int blank, struct fb_info *info) | |||
1353 | NVWriteCrtc(par, 0x1a, vesa); | 1354 | NVWriteCrtc(par, 0x1a, vesa); |
1354 | 1355 | ||
1355 | #ifdef CONFIG_PMAC_BACKLIGHT | 1356 | #ifdef CONFIG_PMAC_BACKLIGHT |
1356 | if (par->FlatPanel && _machine == _MACH_Pmac) { | 1357 | if (par->FlatPanel && machine_is(powermac)) { |
1357 | set_backlight_enable(!blank); | 1358 | set_backlight_enable(!blank); |
1358 | } | 1359 | } |
1359 | #endif | 1360 | #endif |
@@ -1688,7 +1689,7 @@ static int __devinit nvidiafb_probe(struct pci_dev *pd, | |||
1688 | info->fix.id, | 1689 | info->fix.id, |
1689 | par->FbMapSize / (1024 * 1024), info->fix.smem_start); | 1690 | par->FbMapSize / (1024 * 1024), info->fix.smem_start); |
1690 | #ifdef CONFIG_PMAC_BACKLIGHT | 1691 | #ifdef CONFIG_PMAC_BACKLIGHT |
1691 | if (par->FlatPanel && _machine == _MACH_Pmac) | 1692 | if (par->FlatPanel && machine_is(powermac)) |
1692 | register_backlight_controller(&nvidia_backlight_controller, | 1693 | register_backlight_controller(&nvidia_backlight_controller, |
1693 | par, "mnca"); | 1694 | par, "mnca"); |
1694 | #endif | 1695 | #endif |
diff --git a/drivers/video/radeonfb.c b/drivers/video/radeonfb.c index db9fb9074dbc..04820fab964c 100644 --- a/drivers/video/radeonfb.c +++ b/drivers/video/radeonfb.c | |||
@@ -1596,7 +1596,7 @@ static int radeonfb_blank (int blank, struct fb_info *info) | |||
1596 | return 0; | 1596 | return 0; |
1597 | 1597 | ||
1598 | #ifdef CONFIG_PMAC_BACKLIGHT | 1598 | #ifdef CONFIG_PMAC_BACKLIGHT |
1599 | if (rinfo->dviDisp_type == MT_LCD && _machine == _MACH_Pmac) { | 1599 | if (rinfo->dviDisp_type == MT_LCD && machine_is(powermac)) { |
1600 | set_backlight_enable(!blank); | 1600 | set_backlight_enable(!blank); |
1601 | return 0; | 1601 | return 0; |
1602 | } | 1602 | } |
diff --git a/drivers/video/riva/fbdev.c b/drivers/video/riva/fbdev.c index 6c19ab6afb01..b7bd6bb2c77c 100644 --- a/drivers/video/riva/fbdev.c +++ b/drivers/video/riva/fbdev.c | |||
@@ -49,6 +49,7 @@ | |||
49 | #include <asm/pci-bridge.h> | 49 | #include <asm/pci-bridge.h> |
50 | #endif | 50 | #endif |
51 | #ifdef CONFIG_PMAC_BACKLIGHT | 51 | #ifdef CONFIG_PMAC_BACKLIGHT |
52 | #include <asm/machdep.h> | ||
52 | #include <asm/backlight.h> | 53 | #include <asm/backlight.h> |
53 | #endif | 54 | #endif |
54 | 55 | ||
@@ -1247,7 +1248,7 @@ static int rivafb_blank(int blank, struct fb_info *info) | |||
1247 | CRTCout(par, 0x1a, vesa); | 1248 | CRTCout(par, 0x1a, vesa); |
1248 | 1249 | ||
1249 | #ifdef CONFIG_PMAC_BACKLIGHT | 1250 | #ifdef CONFIG_PMAC_BACKLIGHT |
1250 | if ( par->FlatPanel && _machine == _MACH_Pmac) { | 1251 | if ( par->FlatPanel && machine_is(powermac)) { |
1251 | set_backlight_enable(!blank); | 1252 | set_backlight_enable(!blank); |
1252 | } | 1253 | } |
1253 | #endif | 1254 | #endif |
@@ -2037,9 +2038,9 @@ static int __devinit rivafb_probe(struct pci_dev *pd, | |||
2037 | info->fix.smem_len / (1024 * 1024), | 2038 | info->fix.smem_len / (1024 * 1024), |
2038 | info->fix.smem_start); | 2039 | info->fix.smem_start); |
2039 | #ifdef CONFIG_PMAC_BACKLIGHT | 2040 | #ifdef CONFIG_PMAC_BACKLIGHT |
2040 | if (default_par->FlatPanel && _machine == _MACH_Pmac) | 2041 | if (default_par->FlatPanel && machine_is(powermac)) |
2041 | register_backlight_controller(&riva_backlight_controller, | 2042 | register_backlight_controller(&riva_backlight_controller, |
2042 | default_par, "mnca"); | 2043 | default_par, "mnca"); |
2043 | #endif | 2044 | #endif |
2044 | NVTRACE_LEAVE(); | 2045 | NVTRACE_LEAVE(); |
2045 | return 0; | 2046 | return 0; |