From patchwork Mon Nov 10 19:49:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 5269601 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B5CD1C11AC for ; Mon, 10 Nov 2014 21:33:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0623D2015A for ; Mon, 10 Nov 2014 21:33:39 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id BC662200F2 for ; Mon, 10 Nov 2014 21:33:37 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id C9AB5265FE9; Mon, 10 Nov 2014 22:33:36 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 0BFAD262606; Mon, 10 Nov 2014 22:13:03 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 55AD2262606; Mon, 10 Nov 2014 22:13:02 +0100 (CET) Received: from mail-qa0-f48.google.com (mail-qa0-f48.google.com [209.85.216.48]) by alsa0.perex.cz (Postfix) with ESMTP id 15026265AF0 for ; Mon, 10 Nov 2014 20:49:59 +0100 (CET) Received: by mail-qa0-f48.google.com with SMTP id x12so5795891qac.7 for ; Mon, 10 Nov 2014 11:49:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=JwmvpP1mcTZ0o0gFnPzMHWXMXMIqwWE5nHT40esc+Ng=; b=Ccx93VEUdPM8GVKqL8Ywwsgn49DRI5N95OhVaGb9l9ZBZhf95zbAEE140VKAQducQd GMDH6zZNYSnmd+3rPMMhWTP7nn20mriwXknIF5dsWNUNnKQ0Ni4nCFygRh4DUCIRXE7J XMGRnGTf/jNN2u/1eVDWLc3pw9/U9FxHhmXFUhHCv5Se8FMy9n75tYXXKqvasROckpmC bLHzmzOcA2HRR50Ztbyc8L3NxiC3TUnVDX7E7V6PVBdjv8yidGrmWMDMwSsrfxJlJSAb qyGMqx9wMnvWM/DRhEL33PUqDEJyScfwq3/j6BllRz/sUR0jF3QtKPq4hwRbVDygnyV8 DH4g== X-Received: by 10.140.104.234 with SMTP id a97mr44438826qgf.24.1415648997485; Mon, 10 Nov 2014 11:49:57 -0800 (PST) Received: from localhost.localdomain ([201.82.52.106]) by mx.google.com with ESMTPSA id w32sm3883427qgw.38.2014.11.10.11.49.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Nov 2014 11:49:56 -0800 (PST) From: Fabio Estevam To: broonie@kernel.org Date: Mon, 10 Nov 2014 17:49:30 -0200 Message-Id: <1415648970-14383-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 Cc: Fabio Estevam , alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH] ASoC: mxs: mxs-saif: Register the irq with the device name X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam Instead of registering the irq name with the driver name, it's better to pass the device name so that we have a more explicit indication as to what saif instance the irq is related: $ cat /proc/interrupts CPU0 ... 214: 4 - 59 80042000.saif 215: 0 - 58 80046000.saif Signed-off-by: Fabio Estevam --- sound/soc/mxs/mxs-saif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/mxs/mxs-saif.c b/sound/soc/mxs/mxs-saif.c index eade2742..d986508 100644 --- a/sound/soc/mxs/mxs-saif.c +++ b/sound/soc/mxs/mxs-saif.c @@ -773,7 +773,7 @@ static int mxs_saif_probe(struct platform_device *pdev) saif->dev = &pdev->dev; ret = devm_request_irq(&pdev->dev, saif->irq, mxs_saif_irq, 0, - "mxs-saif", saif); + dev_name(&pdev->dev), saif); if (ret) { dev_err(&pdev->dev, "failed to request irq\n"); return ret;