aboutsummaryrefslogtreecommitdiffstatshomepage
tag namedrivers-module-owner-amba-6.10 (a4c170350b2dd3f0f2071ef382251693f5ef503e)
tag date2024-03-30 13:30:02 +0100
tagged byKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
tagged objectcommit 0e16b97475...
downloadlinux-dt-drivers-module-owner-amba-6.10.tar.gz
amba: store owner from modules with amba_driver_register()
Modules registering driver with amba_driver_register() often forget to set .owner field. The field is used by some of other kernel parts for reference counting (try_module_get()), so it is expected that drivers will set it. Solve the problem by moving this task away from the drivers to the core amba bus code, just like we did for platform_driver in commit 9447057eaff8 ("platform_device: use a macro instead of platform_driver_register"). Setting .owner field from the core code fixes several drivers which forgot to initialize it. Other drivers, which were initializing it, can be a bit simplified and don't need their own .owner assignment. -----BEGIN PGP SIGNATURE----- iQJEBAABCgAuFiEE3dJiKD0RGyM7briowTdm5oaLg9cFAmYIBc0QHGtyemtAa2Vy bmVsLm9yZwAKCRDBN2bmhouD15gAD/9zQYMNo5U5MiG2R6SbfGAZcsw3nmnXgLTU wWHVPt+ErzncGj5bud0Zuixcick4LV8NqtuepHEv42RP14TZTL07QRe4LLr6LAK+ gpQB9dIVx742P17nh1LcaIPRFHYRA7nNK26MOBLu401T9vo2UYEG04mHIMUWTJag /dIO6Zf9MqSyzkZmitqq5FQXrBVXX8orCjK41rxIwGRQKHNicOed5ioJAT/153D5 sHAnn9GbsLYJGGfdt46z7YUsmnb0NCryzzDK6hBi4+Y9ZT0RdSgM0bsJgUUavL4P VVhkSWx8kz2vwMsDnZM0ZmSSEgn0ZB3s5aXVIOkU/xBfcJEcuNyIsiCDbR6zdcbP ergQ17ss5hfGsEe+g0hGuPeBfVeY5klHUhMbqqhXFXD+PGb0e0wP4PLtWaCllEeM UaNjWP9d1lLFCnO68/HjFsiGgHDv/nzYh+pd7FIwS4dcyoLMQpcTUs7nNyeZ3wF9 2xBiEenupeOZSXs2090Sy9Qevwi9aj6mPcK/NJDKwMdL7Fj3H7O9CoRnhTYpyRgz 4dHmngNgqF0TuHvrOCJqEI/yKr5cd55jIph53dnUiWuxctZWKS1+Dwl8RLSrDToZ k118eOb2lqYt6o35aBwbvrTzK74xk1dyLGV/7rQSyL7cOLQdVGbPtC5DkA4wZzDS wyp5F+Bb4g== =aGDa -----END PGP SIGNATURE-----