As a pair to already existing drm_connector_unplug_all() we're adding generic implementation of what is already done in some drivers.
After implementation of that new helper we're updating 2 drivers that used to use it's own implementation: [1] atmel_hlcdc [2] rcar_du Other drivers still use load() callback and so should be first modified so their load() gets called from their probe() explicitly. Build- and run-tested on yet to be upstreamed ARC PGU (part of AXS10x board). Alexey Brodkin (3): drm: introduce drm_connector_plug_all() helper drm: atmel_hldc - use generic drm_connector_plug_all() helper drm: rcar-du - use generic drm_connector_plug_all() helper drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 39 ++---------------------- drivers/gpu/drm/drm_crtc.c | 44 +++++++++++++++++++++++++++- drivers/gpu/drm/drm_drv.c | 3 +- drivers/gpu/drm/rcar-du/rcar_du_drv.c | 9 +----- include/drm/drm_crtc.h | 3 +- 5 files changed, 50 insertions(+), 48 deletions(-) Cc: Daniel Vetter <daniel at ffwll.ch> Cc: David Airlie <airlied at linux.ie> Cc: Boris Brezillon <boris.brezillon at free-electrons.com> Cc: Laurent Pinchart <laurent.pinchart at ideasonboard.com> Cc: linux-renesas-soc at vger.kernel.org -- 2.5.0