Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299204
b: refs/heads/master
c: 6d27f09
h: refs/heads/master
v: v3
  • Loading branch information
Ryosuke Saito authored and Jens Axboe committed Apr 5, 2012
1 parent 4abc1eb commit 4b87db0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 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: e9986f303dc0f285401de28cf96f42f4dd23a4a1
refs/heads/master: 6d27f09a6398ee086b11804aa3a16609876f0c7c
15 changes: 11 additions & 4 deletions trunk/drivers/block/mtip32xx/mtip32xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -3605,18 +3605,25 @@ MODULE_DEVICE_TABLE(pci, mtip_pci_tbl);
*/
static int __init mtip_init(void)
{
int error;

printk(KERN_INFO MTIP_DRV_NAME " Version " MTIP_DRV_VERSION "\n");

/* Allocate a major block device number to use with this driver. */
mtip_major = register_blkdev(0, MTIP_DRV_NAME);
if (mtip_major < 0) {
error = register_blkdev(0, MTIP_DRV_NAME);
if (error <= 0) {
printk(KERN_ERR "Unable to register block device (%d)\n",
mtip_major);
error);
return -EBUSY;
}
mtip_major = error;

/* Register our PCI operations. */
return pci_register_driver(&mtip_pci_driver);
error = pci_register_driver(&mtip_pci_driver);
if (error)
unregister_blkdev(mtip_major, MTIP_DRV_NAME);

return error;
}

/*
Expand Down

0 comments on commit 4b87db0

Please sign in to comment.