staging: imx-drm-core: replace drm_get_connector_name() with direct name field use
authorJani Nikula <jani.nikula@intel.com>
Tue, 3 Jun 2014 11:56:16 +0000 (14:56 +0300)
committerDave Airlie <airlied@redhat.com>
Wed, 4 Jun 2014 03:13:37 +0000 (13:13 +1000)
Generated using semantic patch:

@@
expression E;
@@

- drm_get_connector_name(E)
+ E->name

Acked-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/staging/imx-drm/imx-drm-core.c

index 53ff005245c51d0d90ea17b26618a58207f0d4c7..6543b349bfb6ffe3e220d60c66326ede755c6eee 100644 (file)
@@ -298,7 +298,7 @@ static int imx_drm_driver_load(struct drm_device *drm, unsigned long flags)
                        dev_err(drm->dev,
                                "[CONNECTOR:%d:%s] drm_sysfs_connector_add failed: %d\n",
                                connector->base.id,
-                               drm_get_connector_name(connector), ret);
+                               connector->name, ret);
                        goto err_unbind;
                }
        }