Searched hist:"257 bedd4" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/char/hw_random/ |
H A D | pseries-rng.c | 257bedd4 Mon Mar 09 12:36:38 CDT 2015 Dmitry Torokhov <dmitry.torokhov@gmail.com> hwrng: pseries - remove incorrect __init/__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.
Similarly probe() methods should not be marked __init unless platform_driver_probe() is used.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> 257bedd4 Mon Mar 09 12:36:38 CDT 2015 Dmitry Torokhov <dmitry.torokhov@gmail.com> hwrng: pseries - remove incorrect __init/__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. Similarly probe() methods should not be marked __init unless platform_driver_probe() is used. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
|