hwrng: omap - remove incorrect __exit markups
Even if bus is not hot-pluggable, the devices can be unbound from the driver via sysfs, so we should not be using __exit annotations on remove() methods. The only exception is drivers registered with platform_driver_probe() which specifically disables sysfs bind/unbind attributes. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
007ee8dec6
commit
1ee9b5e471
1 changed files with 2 additions and 2 deletions
|
@ -408,7 +408,7 @@ err_ioremap:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __exit omap_rng_remove(struct platform_device *pdev)
|
static int omap_rng_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct omap_rng_dev *priv = platform_get_drvdata(pdev);
|
struct omap_rng_dev *priv = platform_get_drvdata(pdev);
|
||||||
|
|
||||||
|
@ -460,7 +460,7 @@ static struct platform_driver omap_rng_driver = {
|
||||||
.of_match_table = of_match_ptr(omap_rng_of_match),
|
.of_match_table = of_match_ptr(omap_rng_of_match),
|
||||||
},
|
},
|
||||||
.probe = omap_rng_probe,
|
.probe = omap_rng_probe,
|
||||||
.remove = __exit_p(omap_rng_remove),
|
.remove = omap_rng_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
module_platform_driver(omap_rng_driver);
|
module_platform_driver(omap_rng_driver);
|
||||||
|
|
Loading…
Add table
Reference in a new issue