make device_remove_file take a struct device_attribute *, instead of just
a char * (for consistency with device_create_file)
* @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);
}
}
driverfs_remove_dir(&dev->dir);
}
-
static int get_devpath_length(struct device * dev)
{
int length = 1;
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