Displaying 3 results from an estimated 3 matches for "f466937".
2008 Sep 01
1
[PATCH 1/4 v2] PCI: introduce new base functions
...j, &hotplug_slot_attr_test.attr);
+
+ if (has_param_file(slot) == 0)
+ sysfs_remove_file(&slot->kobj, &hotplug_slot_attr_param.attr);
}
static struct hotplug_slot *get_slot_from_name (const char *name)
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
index 9c71858..f466937 100644
--- a/drivers/pci/pci-sysfs.c
+++ b/drivers/pci/pci-sysfs.c
@@ -100,11 +100,13 @@ resource_show(struct device * dev, struct device_attribute *attr, char * buf)
struct pci_dev * pci_dev = to_pci_dev(dev);
char * str = buf;
int i;
- int max = 7;
+ int max;
resource_size_t start, end;...
2008 Sep 01
1
[PATCH 1/4 v2] PCI: introduce new base functions
...j, &hotplug_slot_attr_test.attr);
+
+ if (has_param_file(slot) == 0)
+ sysfs_remove_file(&slot->kobj, &hotplug_slot_attr_param.attr);
}
static struct hotplug_slot *get_slot_from_name (const char *name)
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
index 9c71858..f466937 100644
--- a/drivers/pci/pci-sysfs.c
+++ b/drivers/pci/pci-sysfs.c
@@ -100,11 +100,13 @@ resource_show(struct device * dev, struct device_attribute *attr, char * buf)
struct pci_dev * pci_dev = to_pci_dev(dev);
char * str = buf;
int i;
- int max = 7;
+ int max;
resource_size_t start, end;...
2008 Sep 01
1
[PATCH 1/4 v2] PCI: introduce new base functions
...j, &hotplug_slot_attr_test.attr);
+
+ if (has_param_file(slot) == 0)
+ sysfs_remove_file(&slot->kobj, &hotplug_slot_attr_param.attr);
}
static struct hotplug_slot *get_slot_from_name (const char *name)
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
index 9c71858..f466937 100644
--- a/drivers/pci/pci-sysfs.c
+++ b/drivers/pci/pci-sysfs.c
@@ -100,11 +100,13 @@ resource_show(struct device * dev, struct device_attribute *attr, char * buf)
struct pci_dev * pci_dev = to_pci_dev(dev);
char * str = buf;
int i;
- int max = 7;
+ int max;
resource_size_t start, end;...