Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109915
b: refs/heads/master
c: 9d4e98e
h: refs/heads/master
i:
  109913: bd4cc4b
  109911: f2c1ee9
v: v3
  • Loading branch information
Akinobu Mita authored and Pierre Ossman committed Sep 20, 2008
1 parent f02659d commit e63f7d7
Show file tree
Hide file tree
Showing 2 changed files with 8 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: da45b66ec89bbf3a1c172688c35d4d3a6e8e757f
refs/heads/master: 9d4e98e9609bc19d4a8ac4a5c3218358d1820114
9 changes: 7 additions & 2 deletions trunk/drivers/mmc/card/block.c
Original file line number Diff line number Diff line change
Expand Up @@ -613,14 +613,19 @@ static struct mmc_driver mmc_driver = {

static int __init mmc_blk_init(void)
{
int res = -ENOMEM;
int res;

res = register_blkdev(MMC_BLOCK_MAJOR, "mmc");
if (res)
goto out;

return mmc_register_driver(&mmc_driver);
res = mmc_register_driver(&mmc_driver);
if (res)
goto out2;

return 0;
out2:
unregister_blkdev(MMC_BLOCK_MAJOR, "mmc");
out:
return res;
}
Expand Down

0 comments on commit e63f7d7

Please sign in to comment.