diff options
Diffstat (limited to 'drivers/char/pcmcia/cm4000_cs.c')
-rw-r--r-- | drivers/char/pcmcia/cm4000_cs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/char/pcmcia/cm4000_cs.c b/drivers/char/pcmcia/cm4000_cs.c index 4177f6db83e9..cc5d77797def 100644 --- a/drivers/char/pcmcia/cm4000_cs.c +++ b/drivers/char/pcmcia/cm4000_cs.c | |||
@@ -1863,8 +1863,7 @@ static int cm4000_probe(struct pcmcia_device *link) | |||
1863 | return ret; | 1863 | return ret; |
1864 | } | 1864 | } |
1865 | 1865 | ||
1866 | class_device_create(cmm_class, NULL, MKDEV(major, i), NULL, | 1866 | device_create(cmm_class, NULL, MKDEV(major, i), "cmm%d", i); |
1867 | "cmm%d", i); | ||
1868 | 1867 | ||
1869 | return 0; | 1868 | return 0; |
1870 | } | 1869 | } |
@@ -1888,7 +1887,7 @@ static void cm4000_detach(struct pcmcia_device *link) | |||
1888 | dev_table[devno] = NULL; | 1887 | dev_table[devno] = NULL; |
1889 | kfree(dev); | 1888 | kfree(dev); |
1890 | 1889 | ||
1891 | class_device_destroy(cmm_class, MKDEV(major, devno)); | 1890 | device_destroy(cmm_class, MKDEV(major, devno)); |
1892 | 1891 | ||
1893 | return; | 1892 | return; |
1894 | } | 1893 | } |