Skip to content

Commit 0c22ecd

Browse files
author
Stefan Richter
committed
firewire: sbp2: identify to driver core as "firewire_sbp2", not "sbp2"
Commit eba9eba "firewire: sbp2: use dev_printk API" changed messages from e.g. firewire_sbp2: fw3.0: logged in to LUN 0000 (0 retries) to sbp2 fw3.0: logged in to LUN 0000 (0 retries) because the driver calls itself as "sbp2" when registering with driver core and with SCSI core. This is of course confusing, so switch to the name "firewire_sbp2" for driver core in order to match what lsmod and /sys/module/ show. So we are back to firewire_sbp2 fw3.0: logged in to LUN 0000 (0 retries) in the kernel log. This also changes /sys/bus/firewire/drivers/sbp2 /sys/bus/firewire/devices/fw3.0/driver -> [...]/sbp2 /sys/module/firewire_sbp2/drivers/firewire:sbp2 to /sys/bus/firewire/drivers/firewire_sbp2 /sys/bus/firewire/devices/fw3.0/driver -> [...]/firewire_sbp2 /sys/module/firewire_sbp2/drivers/firewire:firewire_sbp2 but "cat /sys/class/scsi_host/host27/proc_name" stays "sbp2" just in case that proc_name is used by any userland. The transport detection in lsscsi is not affected. (Tested with lsscsi version 0.25.) Udev's /dev/disk/by-id and by-path symlinks are not affected either. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
1 parent eba9eba commit 0c22ecd

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎drivers/firewire/sbp2.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ MODULE_PARM_DESC(workarounds, "Work around device bugs (default = 0"
125125
", override internal blacklist = " __stringify(SBP2_WORKAROUND_OVERRIDE)
126126
", or a combination)");
127127

128-
static const char sbp2_driver_name[] = "sbp2";
129-
130128
/*
131129
* We create one struct sbp2_logical_unit per SBP-2 Logical Unit Number Entry
132130
* and one struct scsi_device per sbp2_logical_unit.
@@ -1270,7 +1268,7 @@ static const struct ieee1394_device_id sbp2_id_table[] = {
12701268
static struct fw_driver sbp2_driver = {
12711269
.driver = {
12721270
.owner = THIS_MODULE,
1273-
.name = sbp2_driver_name,
1271+
.name = KBUILD_MODNAME,
12741272
.bus = &fw_bus_type,
12751273
.probe = sbp2_probe,
12761274
.remove = sbp2_remove,
@@ -1599,7 +1597,7 @@ static struct device_attribute *sbp2_scsi_sysfs_attrs[] = {
15991597
static struct scsi_host_template scsi_driver_template = {
16001598
.module = THIS_MODULE,
16011599
.name = "SBP-2 IEEE-1394",
1602-
.proc_name = sbp2_driver_name,
1600+
.proc_name = "sbp2",
16031601
.queuecommand = sbp2_scsi_queuecommand,
16041602
.slave_alloc = sbp2_scsi_slave_alloc,
16051603
.slave_configure = sbp2_scsi_slave_configure,

0 commit comments

Comments
 (0)