drm: move module initialization to drm_stub.c
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 23 Jul 2014 10:29:56 +0000 (12:29 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Tue, 5 Aug 2014 14:07:59 +0000 (16:07 +0200)
commit1b7199fe9840737397d335922033aa2c3cca92c6
tree627bee9c03c4ed7badc7d6c7428ab9150d0589aa
parent3cb01a980461506f9ec4e4e1dc2dab6314236fb7
drm: move module initialization to drm_stub.c

Most of the new DRM management functions are nowadays in drm_stub.c. By
moving the core module initialization to drm_stub.c we can make several
global variables static and keep the stub-open helper local.

The core files now look like this:
  drm_stub.c: Core management
   drm_drv.c: Ioctl dispatcher
 drm_ioctl.c: Actual ioctl backends
  drm_fops.c: Char-dev file-operations

A follow-up patch will move what is left from drm_drv.c into drm_ioctl.c.

Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/drm_fops.c
drivers/gpu/drm/drm_stub.c
include/drm/drmP.h