From patchwork Thu Apr 21 13:38:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 724901 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3LDVgvm021933 for ; Thu, 21 Apr 2011 13:31:42 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751850Ab1DUNbl (ORCPT ); Thu, 21 Apr 2011 09:31:41 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:53251 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750981Ab1DUNbl (ORCPT ); Thu, 21 Apr 2011 09:31:41 -0400 Received: by pzk9 with SMTP id 9so865590pzk.19 for ; Thu, 21 Apr 2011 06:31:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:date:message-id:subject; bh=I9nwcEgjmx0QabKCQElbteMvTmrp16Xq8otmCtLdgKg=; b=cJmFlUeIqDN00exsTEqncz4k/9Ih/+O3lefuJr5NkMo7xmk9+5ivsLd+vrtucBKxWI H8jVzmYNu3Q1vhsHfT7yy0Jh25bVO6FkfHR/reh2DKkT5sGnF398OawYi/tUlJdIxcSq xUVsdxarBBP1ms9Ei0txcfv2AIibL8IYZffs8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=HSZeNrbGOP3Xf/8PthpzmfSmrVuypLPgXBQDhBzVgY9QEpOdjqwYZwmAf+dAVVEfzc GY9N+cJTDyIdTLw1IOyppaGyHL01T2J1kvVHiURskcELuy1O8iFBr5BzlIJZjbOu87ZF 3YnuRA5SWKjwxtPrvN3swUJ78H1AOCJMonz38= Received: by 10.68.2.8 with SMTP id 8mr11981376pbq.387.1303392700788; Thu, 21 Apr 2011 06:31:40 -0700 (PDT) Received: from [127.0.0.1] (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id i7sm1322593pbs.7.2011.04.21.06.31.38 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Apr 2011 06:31:40 -0700 (PDT) From: Magnus Damm To: linux-input@vger.kernel.org Cc: lethal@linux-sh.org, Magnus Damm , dmitry.torokhov@gmail.com, simon@horms.net, linux-sh@vger.kernel.org Date: Thu, 21 Apr 2011 22:38:24 +0900 Message-Id: <20110421133824.8698.22092.sendpatchset@t400s> Subject: [PATCH] input: sh_keysc: Switch to threaded IRQ handler Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 21 Apr 2011 13:31:43 +0000 (UTC) From: Magnus Damm Update the KEYSC driver to make use of threaded IRQs with IRQF_ONESHOT. Also pass dev_name() as string for /proc/interrupts. Signed-off-by: Magnus Damm --- drivers/input/keyboard/sh_keysc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0011/drivers/input/keyboard/sh_keysc.c +++ work/drivers/input/keyboard/sh_keysc.c 2011-04-21 19:42:33.000000000 +0900 @@ -231,7 +231,8 @@ static int __devinit sh_keysc_probe(stru input->keycodesize = sizeof(pdata->keycodes[0]); input->keycodemax = ARRAY_SIZE(pdata->keycodes); - error = request_irq(irq, sh_keysc_isr, 0, pdev->name, pdev); + error = request_threaded_irq(irq, NULL, sh_keysc_isr, IRQF_ONESHOT, + dev_name(&pdev->dev), pdev); if (error) { dev_err(&pdev->dev, "failed to request IRQ\n"); goto err3;