Commit a303983b authored by Dominik Brodowski's avatar Dominik Brodowski Committed by Linus Torvalds

[PATCH] pcmcia: small bugfix & cleanup

Remove unneeded function declarations and correct /proc-directory name
for > 1 pcmcia_socket_class devices.
parent fb585be3
...@@ -356,7 +356,7 @@ int pcmcia_register_socket(struct device *dev) ...@@ -356,7 +356,7 @@ int pcmcia_register_socket(struct device *dev)
#ifdef CONFIG_PROC_FS #ifdef CONFIG_PROC_FS
if (proc_pccard) { if (proc_pccard) {
char name[3]; char name[3];
sprintf(name, "%02d", i); sprintf(name, "%02d", j);
s->proc = proc_mkdir(name, proc_pccard); s->proc = proc_mkdir(name, proc_pccard);
if (s->proc) if (s->proc)
s->ss_entry->proc_setup(i, s->proc); s->ss_entry->proc_setup(i, s->proc);
......
...@@ -31,9 +31,6 @@ ...@@ -31,9 +31,6 @@
#include "pci_socket.h" #include "pci_socket.h"
extern struct socket_info_t *pcmcia_register_socket (int slot,
struct pccard_operations *vtable, int use_bus_pm);
extern void pcmcia_unregister_socket (struct socket_info_t *socket);
extern void pcmcia_suspend_socket (struct socket_info_t *socket); extern void pcmcia_suspend_socket (struct socket_info_t *socket);
extern void pcmcia_resume_socket (struct socket_info_t *socket); extern void pcmcia_resume_socket (struct socket_info_t *socket);
......
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