Skip to content

Commit a2cdee5

Browse files
committed
ide: remove IDE_CHIPSET_* macros
They just obfuscate the code. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
1 parent 7c199a5 commit a2cdee5

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

‎drivers/ide/ide-probe.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,8 @@ static int init_irq (ide_hwif_t *hwif)
11051105
sa = IRQF_SHARED;
11061106
#endif /* __mc68000__ */
11071107

1108-
if (IDE_CHIPSET_IS_PCI(hwif->chipset))
1108+
if (hwif->chipset == ide_pci || hwif->chipset == ide_cmd646 ||
1109+
hwif->chipset == ide_ali14xx)
11091110
sa = IRQF_SHARED;
11101111

11111112
if (io_ports->ctl_addr)

‎include/linux/ide.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -473,10 +473,6 @@ typedef struct ide_drive_s ide_drive_t;
473473

474474
#define to_ide_device(dev)container_of(dev, ide_drive_t, gendev)
475475

476-
#define IDE_CHIPSET_PCI_MASK \
477-
((1<<ide_pci)|(1<<ide_cmd646)|(1<<ide_ali14xx))
478-
#define IDE_CHIPSET_IS_PCI(c) ((IDE_CHIPSET_PCI_MASK >> (c)) & 1)
479-
480476
struct ide_task_s;
481477
struct ide_port_info;
482478

0 commit comments

Comments
 (0)