Commit 5509cd36 authored by Patrick Mochel's avatar Patrick Mochel

driverfs:

make device_remove_file take a struct device_attribute *, instead of just 
a char * (for consistency with device_create_file)
parent 1ec13f9f
......@@ -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;
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment