/* * Subject to the GPL, version 2. */ #include "xmalloc.h" struct panic_func { void *arg; void (*on_panic)(void *arg); struct panic_func *next; }; static struct panic_func *panic_funcs; void panic_func_add(void (*on_panic)(void *arg), void *arg) { struct panic_func *handler = xmallocz(sizeof(*handler)); handler->arg = arg; handler->on_panic = on_panic; handler->next = panic_funcs; panic_funcs = handler; }; void call_on_panic_funcs(void) { struct panic_func *it; for (it = panic_funcs; it; it = it->next) it->on_panic(it->arg); } ext.git Git repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-07-13 17:39:07 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-07-19 10:04:54 +0200
commit6100598c4a2772bfc7a7a6518a4fea377337952b (patch)
tree5fb14177bccf74e9d9f8ec5250746546fe00d5e7
parentdc96fe4f85507e0423a0f9749ac3eea45d6dbc9b (diff)
drm: Unexport drm_connector_unregister_all()
This has now been removed from all drivers as it is performed centrally as a part of device unregistration for modesetting drivers. With the last user gone, we can unexport it from the DRM module. That requires us to move the code slightly to avoid the need for a forward declaration. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: dri-devel@lists.freedesktop.org Reviewed-by: Sean Paul <seanpaul@chromium.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1468427947-28037-2-git-send-email-chris@chris-wilson.co.uk
-rw-r--r--drivers/gpu/drm/drm_crtc.c29
-rw-r--r--include/drm/drm_crtc.h3
2 files changed, 9 insertions, 23 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c