summaryrefslogtreecommitdiff
path: root/drivers/firewire/fw-sbp2.c
diff options
context:
space:
mode:
authorOlaf Hering <olh@suse.de>2007-05-05 23:17:13 +0200
committerStefan Richter <stefanr@s5r6.in-berlin.de>2007-05-10 18:24:14 +0200
commit1e4c7b0dabb46eb3a2a15cf5efbd3945b13373a0 (patch)
treee20e446acf3312783f71ff0844c342b83cd1de7e /drivers/firewire/fw-sbp2.c
parent58e313b36237ec0a2dc12fd4f7f06d875ce54bd1 (diff)
downloadlwn-1e4c7b0dabb46eb3a2a15cf5efbd3945b13373a0.tar.gz
lwn-1e4c7b0dabb46eb3a2a15cf5efbd3945b13373a0.zip
firewire: Provide module aliase for backwards compatibility.
This patch loads fw-sbp2 if sbp2 is still in the config file. So one can go back and forth between releases without worry about the root filesystem drivers. Signed-off-by: Kristian Hoegsberg <krh@redhat.com> Existing mkinitrd scripts still have to be adapted, unless they grok module aliases. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/fw-sbp2.c')
-rw-r--r--drivers/firewire/fw-sbp2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/firewire/fw-sbp2.c b/drivers/firewire/fw-sbp2.c
index 196de46c00b6..282e4066e8c6 100644
--- a/drivers/firewire/fw-sbp2.c
+++ b/drivers/firewire/fw-sbp2.c
@@ -1181,6 +1181,11 @@ MODULE_DESCRIPTION("SCSI over IEEE1394");
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)
{
return driver_register(&sbp2_driver.driver);