Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40440
b: refs/heads/master
c: ace7d47
h: refs/heads/master
v: v3
  • Loading branch information
Randy Dunlap authored and Dominik Brodowski committed Oct 26, 2006
1 parent 8f1f2fa commit ab0f1e8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4708b5faf7c53bb4128d34267bdfe4b8c74b488a
refs/heads/master: ace7d4772cf056d9b13b51bd496a8be968774592
16 changes: 14 additions & 2 deletions trunk/drivers/pcmcia/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -1292,10 +1292,22 @@ struct bus_type pcmcia_bus_type = {

static int __init init_pcmcia_bus(void)
{
int ret;

spin_lock_init(&pcmcia_dev_list_lock);

bus_register(&pcmcia_bus_type);
class_interface_register(&pcmcia_bus_interface);
ret = bus_register(&pcmcia_bus_type);
if (ret < 0) {
printk(KERN_WARNING "pcmcia: bus_register error: %d\n", ret);
return ret;
}
ret = class_interface_register(&pcmcia_bus_interface);
if (ret < 0) {
printk(KERN_WARNING
"pcmcia: class_interface_register error: %d\n", ret);
bus_unregister(&pcmcia_bus_type);
return ret;
}

pcmcia_setup_ioctl();

Expand Down

0 comments on commit ab0f1e8

Please sign in to comment.