Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332748
b: refs/heads/master
c: ddf16d6
h: refs/heads/master
v: v3
  • Loading branch information
Fabio Estevam authored and David Woodhouse committed Sep 29, 2012
1 parent 6adc0b7 commit 6b18120
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 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: 490e280a69cb0707ccb4c7e0c5c0be02d8ae102c
refs/heads/master: ddf16d620bd80b3c99160acd336c985b70399e37
18 changes: 3 additions & 15 deletions trunk/drivers/mtd/nand/mxc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ static int __init mxcnd_probe_pdata(struct mxc_nand_host *host)
return 0;
}

static int __init mxcnd_probe(struct platform_device *pdev)
static int __devinit mxcnd_probe(struct platform_device *pdev)
{
struct nand_chip *this;
struct mtd_info *mtd;
Expand Down Expand Up @@ -1555,22 +1555,10 @@ static struct platform_driver mxcnd_driver = {
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(mxcnd_dt_ids),
},
.probe = mxcnd_probe,
.remove = __devexit_p(mxcnd_remove),
};

static int __init mxc_nd_init(void)
{
return platform_driver_probe(&mxcnd_driver, mxcnd_probe);
}

static void __exit mxc_nd_cleanup(void)
{
/* Unregister the device structure */
platform_driver_unregister(&mxcnd_driver);
}

module_init(mxc_nd_init);
module_exit(mxc_nd_cleanup);
module_platform_driver(mxcnd_driver);

MODULE_AUTHOR("Freescale Semiconductor, Inc.");
MODULE_DESCRIPTION("MXC NAND MTD driver");
Expand Down

0 comments on commit 6b18120

Please sign in to comment.