Commit 7b46b2a3 authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo Committed by Linus Torvalds

[PATCH] fix sysfs bogosity in i82365.c

It was using a non-existent socket[] index and not doing it for all
sockets.
parent 2b822722
...@@ -1471,6 +1471,10 @@ static int __init init_i82365(void) ...@@ -1471,6 +1471,10 @@ static int __init init_i82365(void)
pcmcia_unregister_socket(&socket[i].socket); pcmcia_unregister_socket(&socket[i].socket);
break; break;
} }
class_device_create_file(&socket[i].socket.dev,
&class_device_attr_info);
class_device_create_file(&socket[i].socket.dev,
&class_device_attr_exca);
} }
/* Finally, schedule a polling interrupt */ /* Finally, schedule a polling interrupt */
...@@ -1482,9 +1486,6 @@ static int __init init_i82365(void) ...@@ -1482,9 +1486,6 @@ static int __init init_i82365(void)
add_timer(&poll_timer); add_timer(&poll_timer);
} }
class_device_create_file(&socket[i].socket.dev, &class_device_attr_info);
class_device_create_file(&socket[i].socket.dev, &class_device_attr_exca);
return 0; return 0;
} /* init_i82365 */ } /* init_i82365 */
......
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