Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
PCMCIA: use proper call to driver_create_file
Browse files Browse the repository at this point in the history
Don't try to call the "raw" sysfs_create_file when we already have a
helper function to do this kind of work for us.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
gregkh committed Jan 25, 2008
1 parent 15147ff commit 2344c6d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/pcmcia/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,7 @@ pcmcia_create_newid_file(struct pcmcia_driver *drv)
{
int error = 0;
if (drv->probe != NULL)
error = sysfs_create_file(&drv->drv.kobj,
&driver_attr_new_id.attr);
error = driver_create_file(&drv->drv, &driver_attr_new_id);
return error;
}

Expand Down

0 comments on commit 2344c6d

Please sign in to comment.