From patchwork Fri Nov 27 21:38:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 7715581 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8D79C9F39B for ; Fri, 27 Nov 2015 22:03:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A94D220680 for ; Fri, 27 Nov 2015 22:03:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A1DA120676 for ; Fri, 27 Nov 2015 22:03:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755268AbbK0WDG (ORCPT ); Fri, 27 Nov 2015 17:03:06 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:32779 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755246AbbK0WDF (ORCPT ); Fri, 27 Nov 2015 17:03:05 -0500 Received: by wmec201 with SMTP id c201so85285782wme.0 for ; Fri, 27 Nov 2015 14:03:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=IUSrAdGKJ5aeNZ4FNGaGsPd5K+lRfOOJiXthgN5N0TU=; b=iXnRe7jmhFaBsuILoO7YPPfSMNawsDEiHDcvabrs6sCJUs/9OHX6YIhgEKYQUiUi2W RcMC2fAFpwPpIbQ6QbbWtlpPgeQl3cxsdJ+Kzvcrm15p1ek1gXCv9/i471O+8byAYHj8 +f00l+9efIBHV3mvk0ko3a0BjceB3x2wpWw4RZZkL9HaIHBwux6dIdFPOv6t/RtKt/fA qYJbDAtGLI/2eKuUjmwZ9/MqZKQJDpddJUSFWqR5rjkBRV5E5eOfJQVuTvRGlm/9e5VQ 1Br3wOBy38GbWOios3JtO5fJB9TK6ikgmZm0hqQbwagsyvnWYZic8KutKTCiYfbs+pwd TDJw== X-Received: by 10.194.110.164 with SMTP id ib4mr14703723wjb.15.1448661783721; Fri, 27 Nov 2015 14:03:03 -0800 (PST) Received: from ?IPv6:2003:62:5f55:ba00:b5bb:17e1:e888:2713? (p200300625F55BA00B5BB17E1E8882713.dip0.t-ipconnect.de. [2003:62:5f55:ba00:b5bb:17e1:e888:2713]) by smtp.googlemail.com with ESMTPSA id a76sm9298188wma.19.2015.11.27.14.03.02 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Nov 2015 14:03:02 -0800 (PST) From: Heiner Kallweit Subject: [PATCH] media: rc: nuvoton: mark wakeup-related resources To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, =?UTF-8?Q?David_H=c3=a4rdeman?= Message-ID: <5658CD64.1030604@gmail.com> Date: Fri, 27 Nov 2015 22:38:44 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When requesting resources use different names for the normal and the wakeup part. This makes it easier to interpret the output of e.g. /proc/interrupts and /proc/ioports. Signed-off-by: Heiner Kallweit --- drivers/media/rc/nuvoton-cir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c index 18adf58..081435c 100644 --- a/drivers/media/rc/nuvoton-cir.c +++ b/drivers/media/rc/nuvoton-cir.c @@ -1079,12 +1079,12 @@ static int nvt_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id) goto exit_unregister_device; if (!devm_request_region(&pdev->dev, nvt->cir_wake_addr, - CIR_IOREG_LENGTH, NVT_DRIVER_NAME)) + CIR_IOREG_LENGTH, NVT_DRIVER_NAME "-wake")) goto exit_unregister_device; if (devm_request_irq(&pdev->dev, nvt->cir_wake_irq, nvt_cir_wake_isr, IRQF_SHARED, - NVT_DRIVER_NAME, (void *)nvt)) + NVT_DRIVER_NAME "-wake", (void *)nvt)) goto exit_unregister_device; device_init_wakeup(&pdev->dev, true);