mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
drm: rcar-du: Use generic drm_connector_register_all() helper
Now that a generic drm_connector_register_all() helper exists we may safely substitute it for the driver-specific implementation of connectors plugging in sysfs. Signed-off-by: Alexey Brodkin <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: David Airlie <[email protected]> Cc: [email protected] Acked-by: Laurent Pinchart <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
This commit is contained in:
committed by
Daniel Vetter
parent
b3383f75fc
commit
d63c25e424
@@ -361,14 +361,7 @@ static int rcar_du_probe(struct platform_device *pdev)
|
||||
if (ret)
|
||||
goto error;
|
||||
|
||||
mutex_lock(&ddev->mode_config.mutex);
|
||||
drm_for_each_connector(connector, ddev) {
|
||||
ret = drm_connector_register(connector);
|
||||
if (ret < 0)
|
||||
break;
|
||||
}
|
||||
mutex_unlock(&ddev->mode_config.mutex);
|
||||
|
||||
ret = drm_connector_register_all(ddev);
|
||||
if (ret < 0)
|
||||
goto error;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user