mtd: mxc_nand: set owner field to prevent module unloading when in use
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
39a5d0b93c
commit
8d1fd16df9
|
@ -1275,6 +1275,7 @@ static int __devexit mxcnd_remove(struct platform_device *pdev)
|
||||||
static struct platform_driver mxcnd_driver = {
|
static struct platform_driver mxcnd_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
|
.owner = THIS_MODULE,
|
||||||
},
|
},
|
||||||
.remove = __devexit_p(mxcnd_remove),
|
.remove = __devexit_p(mxcnd_remove),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue