aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <[email protected]>2024-03-31 10:43:48 +0200
committerMichael S. Tsirkin <[email protected]>2024-04-08 04:11:04 -0400
commitffe6176b7f53ca0c99355f13e14a33a40cf49406 (patch)
treeb0bc3625830dae9fbdeb79ca09fea160e9d3a57b /drivers/usb/cdns3
parentdf9ace7647d4123209395bb9967e998d5758c645 (diff)
virtio: store owner from modules with register_virtio_driver()
Modules registering driver with register_virtio_driver() might forget to set .owner field. i2c-virtio.c for example has it missing. The field is used by some 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 virtio code, just like we did for platform_driver in commit 9447057eaff8 ("platform_device: use a macro instead of platform_driver_register"). Fixes: 3cfc88380413 ("i2c: virtio: add a virtio i2c frontend driver") Cc: "Jie Deng" <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3')
0 files changed, 0 insertions, 0 deletions