diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-09-22 17:41:31 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-09-23 11:41:28 -0400 |
commit | 68e1ee62f0f8e556642a59ebaf0c2cc2ac6ccfa6 (patch) | |
tree | 919ec52758fd0b77f8e429d1eb135835532c49c7 /drivers | |
parent | 1e16dfc1baa745dd89b95f6e33e4142df6218066 (diff) |
powerpc: convert CONFIG_PPC_MERGE to CONFIG_PPC for legacy io checks
Now that arch/ppc is dead CONFIG_PPC_MERGE is always defined for all
powerpc platforms and we want to get rid of CONFIG_PPC_MERGE use
CONFIG_PPC instead.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/floppy.c | 2 | ||||
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-pca-isa.c | 2 | ||||
-rw-r--r-- | drivers/input/serio/i8042-io.h | 2 | ||||
-rw-r--r-- | drivers/pnp/isapnp/core.c | 2 | ||||
-rw-r--r-- | drivers/pnp/pnpbios/core.c | 4 |
6 files changed, 7 insertions, 7 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 395f8ea7981c..5813e0d1a927 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c | |||
@@ -4165,7 +4165,7 @@ static int __init floppy_init(void) | |||
4165 | int i, unit, drive; | 4165 | int i, unit, drive; |
4166 | int err, dr; | 4166 | int err, dr; |
4167 | 4167 | ||
4168 | #if defined(CONFIG_PPC_MERGE) | 4168 | #if defined(CONFIG_PPC) |
4169 | if (check_legacy_ioport(FDC1)) | 4169 | if (check_legacy_ioport(FDC1)) |
4170 | return -ENODEV; | 4170 | return -ENODEV; |
4171 | #endif | 4171 | #endif |
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index 8e8afb6141f9..3123bf57ad91 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c | |||
@@ -2695,7 +2695,7 @@ static __devinit void default_find_bmc(void) | |||
2695 | for (i = 0; ; i++) { | 2695 | for (i = 0; ; i++) { |
2696 | if (!ipmi_defaults[i].port) | 2696 | if (!ipmi_defaults[i].port) |
2697 | break; | 2697 | break; |
2698 | #ifdef CONFIG_PPC_MERGE | 2698 | #ifdef CONFIG_PPC |
2699 | if (check_legacy_ioport(ipmi_defaults[i].port)) | 2699 | if (check_legacy_ioport(ipmi_defaults[i].port)) |
2700 | continue; | 2700 | continue; |
2701 | #endif | 2701 | #endif |
diff --git a/drivers/i2c/busses/i2c-pca-isa.c b/drivers/i2c/busses/i2c-pca-isa.c index a119784bae10..28d8463b74ad 100644 --- a/drivers/i2c/busses/i2c-pca-isa.c +++ b/drivers/i2c/busses/i2c-pca-isa.c | |||
@@ -113,7 +113,7 @@ static int __devinit pca_isa_probe(struct device *dev, unsigned int id) | |||
113 | 113 | ||
114 | dev_info(dev, "i/o base %#08lx. irq %d\n", base, irq); | 114 | dev_info(dev, "i/o base %#08lx. irq %d\n", base, irq); |
115 | 115 | ||
116 | #ifdef CONFIG_PPC_MERGE | 116 | #ifdef CONFIG_PPC |
117 | if (check_legacy_ioport(base)) { | 117 | if (check_legacy_ioport(base)) { |
118 | dev_err(dev, "I/O address %#08lx is not available\n", base); | 118 | dev_err(dev, "I/O address %#08lx is not available\n", base); |
119 | goto out; | 119 | goto out; |
diff --git a/drivers/input/serio/i8042-io.h b/drivers/input/serio/i8042-io.h index f451c7351a9d..847f4aad7ed5 100644 --- a/drivers/input/serio/i8042-io.h +++ b/drivers/input/serio/i8042-io.h | |||
@@ -67,7 +67,7 @@ static inline int i8042_platform_init(void) | |||
67 | * On some platforms touching the i8042 data register region can do really | 67 | * On some platforms touching the i8042 data register region can do really |
68 | * bad things. Because of this the region is always reserved on such boxes. | 68 | * bad things. Because of this the region is always reserved on such boxes. |
69 | */ | 69 | */ |
70 | #if defined(CONFIG_PPC_MERGE) | 70 | #if defined(CONFIG_PPC) |
71 | if (check_legacy_ioport(I8042_DATA_REG)) | 71 | if (check_legacy_ioport(I8042_DATA_REG)) |
72 | return -ENODEV; | 72 | return -ENODEV; |
73 | #endif | 73 | #endif |
diff --git a/drivers/pnp/isapnp/core.c b/drivers/pnp/isapnp/core.c index 101a835e8759..46455fbab6d5 100644 --- a/drivers/pnp/isapnp/core.c +++ b/drivers/pnp/isapnp/core.c | |||
@@ -1012,7 +1012,7 @@ static int __init isapnp_init(void) | |||
1012 | printk(KERN_INFO "isapnp: ISA Plug & Play support disabled\n"); | 1012 | printk(KERN_INFO "isapnp: ISA Plug & Play support disabled\n"); |
1013 | return 0; | 1013 | return 0; |
1014 | } | 1014 | } |
1015 | #ifdef CONFIG_PPC_MERGE | 1015 | #ifdef CONFIG_PPC |
1016 | if (check_legacy_ioport(_PIDXR) || check_legacy_ioport(_PNPWRP)) | 1016 | if (check_legacy_ioport(_PIDXR) || check_legacy_ioport(_PNPWRP)) |
1017 | return -EINVAL; | 1017 | return -EINVAL; |
1018 | #endif | 1018 | #endif |
diff --git a/drivers/pnp/pnpbios/core.c b/drivers/pnp/pnpbios/core.c index 19a4be1a9a31..0797dd170369 100644 --- a/drivers/pnp/pnpbios/core.c +++ b/drivers/pnp/pnpbios/core.c | |||
@@ -519,7 +519,7 @@ static int __init pnpbios_init(void) | |||
519 | { | 519 | { |
520 | int ret; | 520 | int ret; |
521 | 521 | ||
522 | #if defined(CONFIG_PPC_MERGE) | 522 | #if defined(CONFIG_PPC) |
523 | if (check_legacy_ioport(PNPBIOS_BASE)) | 523 | if (check_legacy_ioport(PNPBIOS_BASE)) |
524 | return -ENODEV; | 524 | return -ENODEV; |
525 | #endif | 525 | #endif |
@@ -577,7 +577,7 @@ static int __init pnpbios_thread_init(void) | |||
577 | { | 577 | { |
578 | struct task_struct *task; | 578 | struct task_struct *task; |
579 | 579 | ||
580 | #if defined(CONFIG_PPC_MERGE) | 580 | #if defined(CONFIG_PPC) |
581 | if (check_legacy_ioport(PNPBIOS_BASE)) | 581 | if (check_legacy_ioport(PNPBIOS_BASE)) |
582 | return 0; | 582 | return 0; |
583 | #endif | 583 | #endif |