drm/bridge: ti-sn65dsi86: Remove __exit from GPIO sub-driver remove helper

The ti_sn_gpio_unregister() is not just called from the remove path
but also from the error handling of the init path. That means it can't
have the __exit annotation.

Fixes: bf73537f41 ("drm/bridge: ti-sn65dsi86: Break GPIO and MIPI-to-eDP bridge into sub-drivers")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210504073845.1.Ibf4194f4252846edaa0c6a6c7b86588f75ad5529@changeid
This commit is contained in:
Douglas Anderson 2021-05-04 07:38:54 -07:00 committed by Robert Foss
parent f7dbd8624e
commit 6268b28473
No known key found for this signature in database
GPG key ID: 3EFD900F76D1D784

View file

@ -1251,7 +1251,7 @@ static int __init ti_sn_gpio_register(void)
return auxiliary_driver_register(&ti_sn_gpio_driver);
}
static void __exit ti_sn_gpio_unregister(void)
static void ti_sn_gpio_unregister(void)
{
auxiliary_driver_unregister(&ti_sn_gpio_driver);
}