]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: aic94xx: fix module loading
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 31 Jan 2019 00:42:12 +0000 (16:42 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 1 Feb 2019 23:04:07 +0000 (18:04 -0500)
commitf7d09670ed5ce851d4ff87b74427f63a8e95411a
treeb3058139942db0c7b68bc9daba22df0a2f66752f
parent26db2edf2a396138a186b3963134969c237193b8
scsi: aic94xx: fix module loading

The aic94xx driver is currently failing to load with errors like

sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:03.0/0000:02:00.3/0000:07:02.0/revision'

Because the PCI code had recently added a file named 'revision' to every
PCI device.  Fix this by renaming the aic94xx revision file to
aic_revision.  This is safe to do for us because as far as I can tell,
there's nothing in userspace relying on the current aic94xx revision file
so it can be renamed without breaking anything.

Fixes: a50554b96249 (PCI: Create revision file in sysfs)
Cc: stable@vger.kernel.org
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aic94xx/aic94xx_init.c