]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] PCI: add .owner field to the config sysfs file to be "correct"
authorGreg Kroah-Hartman <greg@kroah.com>
Thu, 29 Jan 2004 06:45:26 +0000 (22:45 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 29 Jan 2004 06:45:26 +0000 (22:45 -0800)
This is in case others copy this code (which has already happened...)

drivers/pci/pci-sysfs.c

index f9af11a64bfd46afd585a37248ca47416de2a731..fd94569cd9104e0811352c96c6b744e7d8f1f145 100644 (file)
@@ -160,6 +160,7 @@ static struct bin_attribute pci_config_attr = {
        .attr = {
                .name = "config",
                .mode = S_IRUGO | S_IWUSR,
+               .owner = THIS_MODULE,
        },
        .size = 256,
        .read = pci_read_config,