[PATCH 2/2] drm: omapdrm: Simplify platform registration

Tomi Valkeinen tomi.valkeinen at ti.com
Tue Dec 19 09:23:48 UTC 2017


On 05/12/17 22:29, Andrew F. Davis wrote:
> Currently, calls into each file are used to register the various
> platform drivers. Change this to a table of pointers to platform_driver
> structs to allow using platform_register_drivers.
> 
> Signed-off-by: Andrew F. Davis <afd at ti.com>
> ---
>   drivers/gpu/drm/omapdrm/dss/core.c  | 51 +++++++++++--------------------------
>   drivers/gpu/drm/omapdrm/dss/dispc.c | 12 +--------
>   drivers/gpu/drm/omapdrm/dss/dsi.c   | 12 +--------
>   drivers/gpu/drm/omapdrm/dss/dss.c   | 12 +--------
>   drivers/gpu/drm/omapdrm/dss/dss.h   | 35 +++++++++++--------------
>   drivers/gpu/drm/omapdrm/dss/hdmi4.c | 12 +--------
>   drivers/gpu/drm/omapdrm/dss/hdmi5.c | 12 +--------
>   drivers/gpu/drm/omapdrm/dss/venc.c  | 12 +--------
>   8 files changed, 36 insertions(+), 122 deletions(-)

Thanks! There was an unused variable warning, I fixed that, and applied 
this and the patch 1 of the series.

  Tomi

-- 
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. 
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki


More information about the dri-devel mailing list