]> git.neil.brown.name Git - history.git/commitdiff
driverfs:
authorPatrick Mochel <mochel@osdl.org>
Wed, 31 Jul 2002 07:08:54 +0000 (00:08 -0700)
committerPatrick Mochel <mochel@osdl.org>
Wed, 31 Jul 2002 07:08:54 +0000 (00:08 -0700)
make device_remove_file take a struct device_attribute *, instead of just
a char * (for consistency with device_create_file)

drivers/base/fs.c
include/linux/device.h

index 4aa4938461e870c7a775b0f85d6e22854c0d7bba..972d9433dcde690868228afc3b80356b279d5594 100644 (file)
@@ -42,11 +42,11 @@ int device_create_file(struct device * dev, struct device_attribute * entry)
  * @name:      name of the file
  *
  */
-void device_remove_file(struct device * dev, const char * name)
+void device_remove_file(struct device * dev, struct device_attribute * attr)
 {
        if (dev) {
                get_device(dev);
-               driverfs_remove_file(&dev->dir,name);
+               driverfs_remove_file(&dev->dir,attr->name);
                put_device(dev);
        }
 }
@@ -61,7 +61,6 @@ void device_remove_dir(struct device * dev)
                driverfs_remove_dir(&dev->dir);
 }
 
-
 static int get_devpath_length(struct device * dev)
 {
        int length = 1;
index 38048776fdd8773dcd19be3e63fe101ac95158cf..670be49d17188673b0b718dbac4cde35f1656e0a 100644 (file)
@@ -180,7 +180,7 @@ g_list_to_dev(struct list_head *g_list)
 extern int device_register(struct device * dev);
 
 extern int device_create_file(struct device *device, struct device_attribute * entry);
-extern void device_remove_file(struct device * dev, const char * name);
+extern void device_remove_file(struct device * dev, struct device_attribute * attr);
 
 /*
  * Platform "fixup" functions - allow the platform to have their say