diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-10-02 05:23:34 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-10-09 00:38:15 -0400 |
commit | 1bb72532ac260a2d3982b40bdd4c936d779d0d16 (patch) | |
tree | f0ec6e8d7d68fe8dff496f0226ac3837fb3aac3d /include/drm/drmP.h | |
parent | 16eb5f4379b2097438a224381be3b4d9e56ac979 (diff) |
drm: add drm_dev_alloc() helper
Instead of managing device allocation+initialization in each bus-driver,
we should do that in a central place. drm_fill_in_dev() already does most
of it, but also requires the global drm lock for partial AGP device
registration.
Split both apart so we have a clean device initialization/allocation
phase, and a registration phase.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r-- | include/drm/drmP.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 69dd5fd5b215..ea545b5ad467 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -1643,6 +1643,8 @@ static __inline__ void drm_core_dropmap(struct drm_local_map *map) | |||
1643 | extern int drm_fill_in_dev(struct drm_device *dev, | 1643 | extern int drm_fill_in_dev(struct drm_device *dev, |
1644 | const struct pci_device_id *ent, | 1644 | const struct pci_device_id *ent, |
1645 | struct drm_driver *driver); | 1645 | struct drm_driver *driver); |
1646 | struct drm_device *drm_dev_alloc(struct drm_driver *driver, | ||
1647 | struct device *parent); | ||
1646 | int drm_get_minor(struct drm_device *dev, struct drm_minor **minor, int type); | 1648 | int drm_get_minor(struct drm_device *dev, struct drm_minor **minor, int type); |
1647 | /*@}*/ | 1649 | /*@}*/ |
1648 | 1650 | ||