diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2016-12-02 11:50:26 +0100 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2016-12-04 12:32:04 +0100 |
commit | 011f2c26f1b62e309f2eac6a3101bfe0a3c76c7e (patch) | |
tree | be53d4f11f7625508ee3aea9889e854ab5b5f263 /target/linux/brcm2708/patches-4.4/0437-drm-mipi-dsi-Unregister-bus-at-exit.patch | |
parent | 4257f6548b9480cdb436115b63d5c134c5e91303 (diff) | |
download | upstream-011f2c26f1b62e309f2eac6a3101bfe0a3c76c7e.tar.gz upstream-011f2c26f1b62e309f2eac6a3101bfe0a3c76c7e.tar.bz2 upstream-011f2c26f1b62e309f2eac6a3101bfe0a3c76c7e.zip |
brcm2708: update linux 4.4 patches to latest version
As usual these patches were extracted and rebased from the raspberry pi repo:
https://github.com/raspberrypi/linux/tree/rpi-4.4.y
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/brcm2708/patches-4.4/0437-drm-mipi-dsi-Unregister-bus-at-exit.patch')
-rw-r--r-- | target/linux/brcm2708/patches-4.4/0437-drm-mipi-dsi-Unregister-bus-at-exit.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-4.4/0437-drm-mipi-dsi-Unregister-bus-at-exit.patch b/target/linux/brcm2708/patches-4.4/0437-drm-mipi-dsi-Unregister-bus-at-exit.patch new file mode 100644 index 0000000000..32c1e2994c --- /dev/null +++ b/target/linux/brcm2708/patches-4.4/0437-drm-mipi-dsi-Unregister-bus-at-exit.patch @@ -0,0 +1,30 @@ +From f9d8003717adf713eb2835deec560e51ae0b410e Mon Sep 17 00:00:00 2001 +From: Takashi Iwai <tiwai@suse.de> +Date: Tue, 2 Aug 2016 14:16:42 +0200 +Subject: [PATCH] drm/mipi-dsi: Unregister bus at exit + +This is a preliminary patch for building drm-mipi-dsi as a module. +Add the module exit callback to unregister the bus properly. + +Suggested-by: Thierry Reding <treding@nvidia.com> +Signed-off-by: Takashi Iwai <tiwai@suse.de> +Signed-off-by: Eric Anholt <eric@anholt.net> +--- + drivers/gpu/drm/drm_mipi_dsi.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +--- a/drivers/gpu/drm/drm_mipi_dsi.c ++++ b/drivers/gpu/drm/drm_mipi_dsi.c +@@ -928,6 +928,12 @@ static int __init mipi_dsi_bus_init(void + } + postcore_initcall(mipi_dsi_bus_init); + ++static void __exit mipi_dsi_bus_exit(void) ++{ ++ bus_unregister(&mipi_dsi_bus_type); ++} ++module_exit(mipi_dsi_bus_exit); ++ + MODULE_AUTHOR("Andrzej Hajda <a.hajda@samsung.com>"); + MODULE_DESCRIPTION("MIPI DSI Bus"); + MODULE_LICENSE("GPL and additional rights"); |