@@ -541,6 +541,7 @@ static int qcom_smp2p_probe(struct platform_device *pdev)
struct device_node *node;
struct qcom_smp2p *smp2p;
const char *key;
+ char *name;
int irq;
int ret;
@@ -632,10 +633,16 @@ static int qcom_smp2p_probe(struct platform_device *pdev)
qcom_smp2p_kick(smp2p);
smp2p->irq = irq;
+ name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "smp2p_%d",
+ smp2p->remote_pid);
+ if (!name) {
+ ret = -ENOMEM;
+ goto unwind_interfaces;
+ }
ret = devm_request_threaded_irq(&pdev->dev, irq,
NULL, qcom_smp2p_intr,
IRQF_ONESHOT,
- "smp2p", (void *)smp2p);
+ name, (void *)smp2p);
if (ret) {
dev_err(&pdev->dev, "failed to request interrupt\n");
goto unwind_interfaces;