Skip to contentSkip to conversation

firewire: Remove two unneeded checks for macros

PATCH In review Paul Bolle 2 participants 2 messages Mar 16, 2013 – Mar 19, 2013 Firewire

lore
Share & tools
lore

Paul Bolle

author
#0 lore raw

PATCH 1/1 firewire: Remove two unneeded checks for macros

The old IEEE 1394 driver stack was removed in v2.6.37. That made the checks for two Kconfig (module) macros unneeded, since they will now always evaluate to true. Remove these two checks.

---
Perhaps these alias can be dropped entirely. Bat that's not my call.

 drivers/firewire/ohci.c | 2 --
 drivers/firewire/sbp2.c | 2 --
 2 files changed, 4 deletions(-)
drivers/firewire/ohci.c +0 -2
index 45912e6..4a55b51 100644
@@ -3837,6 +3837,4 @@ MODULE_DESCRIPTION("Driver for PCI OHCI IEEE1394 controllers");
 MODULE_LICENSE("GPL");
 
 /* Provide a module alias so root-on-sbp2 initrds don't break. */
-#ifndef CONFIG_IEEE1394_OHCI1394_MODULE
 MODULE_ALIAS("ohci1394");
-#endif
drivers/firewire/sbp2.c +0 -2
index 1162d6b..12ec0e6 100644
@@ -1636,9 +1636,7 @@ MODULE_LICENSE("GPL");
 MODULE_DEVICE_TABLE(ieee1394, sbp2_id_table);
 
 /* Provide a module alias so root-on-sbp2 initrds don't break. */
-#ifndef CONFIG_IEEE1394_SBP2_MODULE
 MODULE_ALIAS("sbp2");
-#endif
 
 static int __init sbp2_init(void)
 {
Signature · 1 line
1.7.11.7
#1 lore raw
Quoted 5 lines · On Mar 16 Paul Bolle wrote:

The old IEEE 1394 driver stack was removed in v2.6.37. That made the checks for two Kconfig (module) macros unneeded, since they will now always evaluate to true. Remove these two checks.

Looks good to me, will commit it sometime soon.

Quoted 2 lines

---
Perhaps these alias can be dropped entirely. Bat that's not my call.

Perhaps. One could look through various distributor mkinitrds, but I suspect that would be an impossible task. First of all, I have no idea what the package names could be. Second, there seem to be quite a few distributions which don't have any sensible public FTP/HTTP server from which packages can be downloaded separately.

Quoted 29 lines
 drivers/firewire/ohci.c | 2 --
 drivers/firewire/sbp2.c | 2 --
 2 files changed, 4 deletions(-)
drivers/firewire/ohci.c +0 -2
index 45912e6..4a55b51 100644
@@ -3837,6 +3837,4 @@ MODULE_DESCRIPTION("Driver for PCI OHCI IEEE1394 controllers");
 MODULE_LICENSE("GPL");
 
 /* Provide a module alias so root-on-sbp2 initrds don't break. */
-#ifndef CONFIG_IEEE1394_OHCI1394_MODULE
 MODULE_ALIAS("ohci1394");
-#endif
drivers/firewire/sbp2.c +0 -2
index 1162d6b..12ec0e6 100644
@@ -1636,9 +1636,7 @@ MODULE_LICENSE("GPL");
 MODULE_DEVICE_TABLE(ieee1394, sbp2_id_table);
 
 /* Provide a module alias so root-on-sbp2 initrds don't break. */
-#ifndef CONFIG_IEEE1394_SBP2_MODULE
 MODULE_ALIAS("sbp2");
-#endif
 
 static int __init sbp2_init(void)
 {
Signature · 3 lines
Stefan Richter
-=====-===-= --== =--==
http://arcgraph.de/sr/