Commit 8b0a99ce authored by Vincent Abriou's avatar Vincent Abriou Committed by Benjamin Gaignard

drm/sti: VTG interrupt names are badly displayed

VTG interrupt names are badly displayed using "cat /proc/interrupts".
Simply use the VTG device name while registering the VTG interrupts
to fix it.
Signed-off-by: default avatarVincent Abriou <vincent.abriou@st.com>
parent 8eba2703
...@@ -333,7 +333,6 @@ static int vtg_probe(struct platform_device *pdev) ...@@ -333,7 +333,6 @@ static int vtg_probe(struct platform_device *pdev)
struct device_node *np; struct device_node *np;
struct sti_vtg *vtg; struct sti_vtg *vtg;
struct resource *res; struct resource *res;
char irq_name[32];
int ret; int ret;
vtg = devm_kzalloc(dev, sizeof(*vtg), GFP_KERNEL); vtg = devm_kzalloc(dev, sizeof(*vtg), GFP_KERNEL);
...@@ -364,13 +363,11 @@ static int vtg_probe(struct platform_device *pdev) ...@@ -364,13 +363,11 @@ static int vtg_probe(struct platform_device *pdev)
return vtg->irq; return vtg->irq;
} }
snprintf(irq_name, sizeof(irq_name), "vsync-%s",
dev_name(vtg->dev));
RAW_INIT_NOTIFIER_HEAD(&vtg->notifier_list); RAW_INIT_NOTIFIER_HEAD(&vtg->notifier_list);
ret = devm_request_threaded_irq(dev, vtg->irq, vtg_irq, ret = devm_request_threaded_irq(dev, vtg->irq, vtg_irq,
vtg_irq_thread, IRQF_ONESHOT, irq_name, vtg); vtg_irq_thread, IRQF_ONESHOT,
dev_name(dev), vtg);
if (IS_ERR_VALUE(ret)) { if (IS_ERR_VALUE(ret)) {
DRM_ERROR("Failed to register VTG interrupt\n"); DRM_ERROR("Failed to register VTG interrupt\n");
return ret; return ret;
......
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