]> git.baikalelectronics.ru Git - kernel.git/commit
staging: drm/omap: Get DMM resources from hwmod
authorAndy Gross <andy.gross@ti.com>
Mon, 5 Mar 2012 16:48:39 +0000 (10:48 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Mar 2012 21:38:08 +0000 (13:38 -0800)
commit68c174f6cef0fcda3f1b47bd00e5a24ddb3c2fd9
tree6a96a8db5ade06a7d7074860fa39701708189e2f
parent60fe692ba6ab9e2e64ae6260f9fd555a50b87562
staging: drm/omap: Get DMM resources from hwmod

This patch splits the DMM off into a separate sub-device, in order to
utilize the platform device information that was created as part of
the OMAP hwmod entry for the DMM.

The driver probe function queries the iomem resource and IRQ using
standard platform_get functions.

The OMAP DRM driver now calls the platform_driver_register() function
for the subordinate DMM driver inside its probe function.  This
guarantees the required order for the DMM and ensures the DMM resources
are available for use by the DRM driver.

Signed-off-by: Andy Gross <andy.gross@ti.com>
Signed-off-by: Rob Clark <rob@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/omapdrm/omap_dmm_tiler.c
drivers/staging/omapdrm/omap_dmm_tiler.h
drivers/staging/omapdrm/omap_drv.c
drivers/staging/omapdrm/omap_gem.c