diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2024-05-03 12:10:52 +0200 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2024-08-26 15:28:24 +0200 |
commit | af8a6e65f42c6c89414017cc4d78403e83056172 (patch) | |
tree | ebd02a1737f6ec4288a5d94026c63d1a1aee8fc8 /drivers/usb/serial/upd78f0730.c | |
parent | 47ac09b91befbb6a235ab620c32af719f8208399 (diff) |
USB: serial: set driver owner when registering drivers
Modules registering drivers with usb_serial_register_drivers() might
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
USB serial code, just like we did for platform_driver in
commit 9447057eaff8 ("platform_device: use a macro instead of
platform_driver_register").
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
[ johan: amend commit summary ]
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/upd78f0730.c')
0 files changed, 0 insertions, 0 deletions