mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 00:48:50 +00:00
11b3c20bdd
The integer returned by the unload hook is ignored by the drm core, so let's make it void. This patch was created using the following Coccinelle semantic script (except for the declaration and comment in drm_drv.h): Compile-tested only. // <smpl> @ get_name @ struct drm_driver drv; identifier fn; @@ drv.unload = fn; @ replace_type @ identifier get_name.fn; @@ - int + void fn (...) { ... } @ remove_return_param @ identifier get_name.fn; @@ void fn (...) { <... if (...) return - ... ; ...> } @ drop_final_return @ identifier get_name.fn; @@ void fn (...) { ... - return 0; } // </smpl> Suggested-by: Daniel Vetter <daniel.vetter@intel.com> Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk> Acked-by: Christian König <christian.koenig@amd.com>. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20170106175731.29196-1-krisman@collabora.co.uk |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
shmob_drm_backlight.c | ||
shmob_drm_backlight.h | ||
shmob_drm_crtc.c | ||
shmob_drm_crtc.h | ||
shmob_drm_drv.c | ||
shmob_drm_drv.h | ||
shmob_drm_kms.c | ||
shmob_drm_kms.h | ||
shmob_drm_plane.c | ||
shmob_drm_plane.h | ||
shmob_drm_regs.h |