PCI: Simplify sysfs ROM cleanup
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 1 Mar 2016 15:37:10 +0000 (09:37 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 12 Mar 2016 12:00:29 +0000 (06:00 -0600)
commit9d88b93bea5937c0c5c5fc30089d4e6e3c9ca508
treea56080a05b7d3b5b5c0b47b77863ce2f5d4d4b56
parentd9c8bea179a6906a74ea42a2a162c4d1c6d9a16b
PCI: Simplify sysfs ROM cleanup

The value of pdev->rom_attr is the definitive indicator of the fact that
we're created a sysfs attribute.  Check that rather than rom_size, which is
only used incidentally when deciding whether to create a sysfs attribute.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci-sysfs.c