Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195923
b: refs/heads/master
c: 1ca5d2f
h: refs/heads/master
i:
  195921: c58762d
  195919: dc935e8
v: v3
  • Loading branch information
H Hartley Sweeten authored and David Woodhouse committed Apr 20, 2010
1 parent a038d07 commit 20db30e
Show file tree
Hide file tree
Showing 2 changed files with 6 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: fed457a83611182f5a2e049cce02f8f4e1b65644
refs/heads/master: 1ca5d2f0196cfca678086fa6f88eec4f9d0307ee
7 changes: 5 additions & 2 deletions trunk/drivers/mtd/maps/physmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,11 @@ static int __init physmap_init(void)

err = platform_driver_register(&physmap_flash_driver);
#ifdef CONFIG_MTD_PHYSMAP_COMPAT
if (err == 0)
platform_device_register(&physmap_flash);
if (err == 0) {
err = platform_device_register(&physmap_flash);
if (err)
platform_driver_unregister(&physmap_flash_driver);
}
#endif

return err;
Expand Down

0 comments on commit 20db30e

Please sign in to comment.