diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c index f04d83031759eb934902d3458c9fe9b3c0597e78..09e2066a93d405ca150ce749c4caab950f0f8a85 100644 --- a/drivers/pci/pci-sysfs.c +++ b/drivers/pci/pci-sysfs.c @@ -486,7 +486,7 @@ static ssize_t remove_store(struct device *dev, struct device_attribute *attr, return count; } -static struct device_attribute dev_remove_attr = __ATTR(remove, +static struct device_attribute dev_remove_attr = __ATTR_IGNORE_LOCKDEP(remove, (S_IWUSR|S_IWGRP), NULL, remove_store);