]> 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)
commit22091861f65827dd3e5eb494f8ad562031d74ccc
tree6a96a8db5ade06a7d7074860fa39701708189e2f
parentc1a18b4f7f097e4308f69a13aa23d26105fb4ed8
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