Commit 2ab6590c authored by Jani Nikula's avatar Jani Nikula

drm/edid/firmware: convert to drm device specific logging

Conform to device specific logging.

v2: Include [CONNECTOR:%d:%s] (Ville)
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/14f3a1e55729c9157aae93fc45320d05cc4cc7bc.1666614699.git.jani.nikula@intel.com
parent 5f2d0ed4
...@@ -177,15 +177,19 @@ static const struct drm_edid *edid_load(struct drm_connector *connector, const c ...@@ -177,15 +177,19 @@ static const struct drm_edid *edid_load(struct drm_connector *connector, const c
pdev = platform_device_register_simple(connector->name, -1, NULL, 0); pdev = platform_device_register_simple(connector->name, -1, NULL, 0);
if (IS_ERR(pdev)) { if (IS_ERR(pdev)) {
DRM_ERROR("Failed to register EDID firmware platform device " drm_err(connector->dev,
"for connector \"%s\"\n", connector->name); "[CONNECTOR:%d:%s] Failed to register EDID firmware platform device for connector \"%s\"\n",
connector->base.id, connector->name,
connector->name);
return ERR_CAST(pdev); return ERR_CAST(pdev);
} }
err = request_firmware(&fw, name, &pdev->dev); err = request_firmware(&fw, name, &pdev->dev);
platform_device_unregister(pdev); platform_device_unregister(pdev);
if (err) { if (err) {
DRM_ERROR("Requesting EDID firmware \"%s\" failed (err=%d)\n", drm_err(connector->dev,
"[CONNECTOR:%d:%s] Requesting EDID firmware \"%s\" failed (err=%d)\n",
connector->base.id, connector->name,
name, err); name, err);
return ERR_PTR(err); return ERR_PTR(err);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment