linux/drivers/gpu/drm/omapdrm
Gabriel Krisman Bertazi 11b3c20bdd drm: Change the return type of the unload hook to void
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
2017-01-09 11:25:22 +01:00
..
displays drm/omap: tpd12s015: fix error handling 2016-12-08 13:42:58 +02:00
dss drm/omap: Use consistent name for struct videomode 2016-11-02 10:48:18 +02:00
Kconfig drm/omap: make fbdev support really optional 2016-07-18 09:11:34 +02:00
Makefile drm/omap: remove -Werror from Makefile 2016-03-03 17:38:46 +02:00
TODO
omap_connector.c drm/omap: Use consistent name for struct videomode 2016-11-02 10:48:18 +02:00
omap_crtc.c drm/omap: Use consistent name for struct videomode 2016-11-02 10:48:18 +02:00
omap_debugfs.c drm/mm: Convert to drm_printer 2016-12-30 12:08:28 +01:00
omap_dmm_priv.h drm/omap: fix race conditon in DMM 2015-03-24 13:50:59 +02:00
omap_dmm_tiler.c drm/omap: include linux/seq_file.h where needed 2016-05-31 08:30:14 +03:00
omap_dmm_tiler.h drm/omap: fix TILER on OMAP5 2015-03-24 13:50:55 +02:00
omap_drv.c drm: Change the return type of the unload hook to void 2017-01-09 11:25:22 +01:00
omap_drv.h drm/omap: fix primary-plane's possible_crtcs 2016-12-08 13:42:57 +02:00
omap_encoder.c drm/omap: Use consistent name for struct videomode 2016-11-02 10:48:18 +02:00
omap_fb.c drm: Nuke fb->pixel_format 2016-12-15 14:55:34 +02:00
omap_fbdev.c drm: Nuke fb->depth 2016-12-15 14:55:33 +02:00
omap_gem.c drm/omap: omap_gem: Do not try to unmap page which is not mapped 2016-11-02 10:38:28 +02:00
omap_gem_dmabuf.c Merge tag 'topic/drm-misc-2016-03-22' of git://anongit.freedesktop.org/drm-intel into drm-next 2016-03-24 08:41:59 +10:00
omap_irq.c drm/irq: Use unsigned int pipe in public API 2015-10-06 12:57:47 +02:00
omap_plane.c drm/omap: fix primary-plane's possible_crtcs 2016-12-08 13:42:57 +02:00
tcm-sita.c drm/omap: Use bitmaps for TILER placement 2015-12-31 11:25:47 +02:00
tcm-sita.h
tcm.h drm/omap: Use bitmaps for TILER placement 2015-12-31 11:25:47 +02:00