linux/drivers/gpu/drm/mgag200
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
..
Kconfig drm/mgag200: make fbdev support really optional 2016-07-18 09:11:34 +02:00
Makefile drm/mgag200: Hardware cursor support 2013-06-17 19:42:48 +10:00
mgag200_cursor.c drm: Remove unused drm_device from drm_gem_object_lookup() 2016-05-17 08:47:30 +02:00
mgag200_drv.c drm: define drm_compat_ioctl NULL on CONFIG_COMPAT=n and reduce #ifdefs 2016-11-02 11:33:47 -04:00
mgag200_drv.h drm: Change the return type of the unload hook to void 2017-01-09 11:25:22 +01:00
mgag200_fb.c drm: Nuke fb->bits_per_pixel 2016-12-15 14:55:34 +02:00
mgag200_i2c.c drm/mgag200: Add support for a new G200eW3 chipset 2015-08-24 13:46:52 +10:00
mgag200_main.c drm: Change the return type of the unload hook to void 2017-01-09 11:25:22 +01:00
mgag200_mode.c drm: Nuke fb->bits_per_pixel 2016-12-15 14:55:34 +02:00
mgag200_reg.h drm/mgag200: Hardware cursor support 2013-06-17 19:42:48 +10:00
mgag200_ttm.c Linux 4.9-rc4 2016-11-07 09:37:09 +10:00