diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-11-28 15:23:18 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 23:40:33 -0500 |
commit | 2344c6de6b6f2a4b07e4416aac9522d23e00d7bc (patch) | |
tree | 807a2a657560224e1bc681d5f8bbb69ac54951a7 /drivers/pcmcia/ds.c | |
parent | 15147ffd57576fc00a23ad8a020ff46493a4f924 (diff) |
PCMCIA: use proper call to driver_create_file
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>
Diffstat (limited to 'drivers/pcmcia/ds.c')
-rw-r--r-- | drivers/pcmcia/ds.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c index 5cf89a91da1e..15c18f5246d6 100644 --- a/drivers/pcmcia/ds.c +++ b/drivers/pcmcia/ds.c | |||
@@ -312,8 +312,7 @@ pcmcia_create_newid_file(struct pcmcia_driver *drv) | |||
312 | { | 312 | { |
313 | int error = 0; | 313 | int error = 0; |
314 | if (drv->probe != NULL) | 314 | if (drv->probe != NULL) |
315 | error = sysfs_create_file(&drv->drv.kobj, | 315 | error = driver_create_file(&drv->drv, &driver_attr_new_id); |
316 | &driver_attr_new_id.attr); | ||
317 | return error; | 316 | return error; |
318 | } | 317 | } |
319 | 318 | ||