Skip to content

Commit 181dfce

Browse files
ipylypivmartinkpetersen
authored andcommitted
scsi: pm80xx: Display proc_name in sysfs
The proc_name entry in sysfs for pm80xx is "(null)" because it is not initialized in scsi_host_template: Before: host:~# cat /sys/class/scsi_host/host6/proc_name (null) After: host:~# cat /sys/class/scsi_host/host6/proc_name pm80xx Signed-off-by: Igor Pylypiv <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Jolly Shah <[email protected]> Acked-by: Jack Wang <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 48ee795 commit 181dfce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/scsi/pm8001/pm8001_init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ static void pm8001_map_queues(struct Scsi_Host *shost)
9999
static struct scsi_host_template pm8001_sht = {
100100
.module = THIS_MODULE,
101101
.name = DRV_NAME,
102+
.proc_name = DRV_NAME,
102103
.queuecommand = sas_queuecommand,
103104
.dma_need_drain = ata_scsi_dma_need_drain,
104105
.target_alloc = sas_target_alloc,

0 commit comments

Comments
 (0)