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)
pcmcia_unregister_socket(&socket[i].socket);
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 */
......@@ -1481,9 +1485,6 @@ static int __init init_i82365(void)
poll_timer.expires = jiffies + poll_interval;
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;
......
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