Remove incorrect CONFIG_IDE ifdef (CONFIG_IDE config option is for internal drivers/ide/ use) and make IDE hardware interface always initialized (not only when IDE subsystem is built-in). This patch allows Cayman board to work with modular IDE subsystem support and removes the requirement of having the whole core IDE subsystem built-in when using libata PATA support.
Unified · Split
| @@ -128,7 +128,6 @@ static int __init smsc_superio_setup(void) · 127 unmodified lines | ||
| 128 | 128 | SMSC_SUPERIO_WRITE_INDEXED(1, SMSC_PRIMARY_INT_INDEX); |
| 129 | 129 | SMSC_SUPERIO_WRITE_INDEXED(12, SMSC_SECONDARY_INT_INDEX); |
| 130 | 130 | |
| 131 | −#ifdef CONFIG_IDE | |
| 132 | 131 | /* |
| 133 | 132 | * Only IDE1 exists on the Cayman |
| 134 | 133 | */ |
| @@ -158,7 +157,6 @@ static int __init smsc_superio_setup(void) · 23 unmodified lines | ||
| 158 | 157 | SMSC_SUPERIO_WRITE_INDEXED(0x01, 0xc5); /* GP45 = IDE1_IRQ */ |
| 159 | 158 | SMSC_SUPERIO_WRITE_INDEXED(0x00, 0xc6); /* GP46 = nIOROP */ |
| 160 | 159 | SMSC_SUPERIO_WRITE_INDEXED(0x00, 0xc7); /* GP47 = nIOWOP */ |
| 161 | −#endif | |
| 162 | 160 | |
| 163 | 161 | /* Exit the configuration state */ |
| 164 | 162 | outb(SMSC_EXIT_CONFIG_KEY, SMSC_CONFIG_PORT_ADDR); |