From patchwork Tue Oct 28 06:37:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varka Bhadram X-Patchwork-Id: 404061 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 2AE9E140076 for ; Tue, 28 Oct 2014 17:40:45 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751620AbaJ1Gkn (ORCPT ); Tue, 28 Oct 2014 02:40:43 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:40634 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933870AbaJ1GkO (ORCPT ); Tue, 28 Oct 2014 02:40:14 -0400 Received: by mail-pd0-f172.google.com with SMTP id r10so38415pdi.17 for ; Mon, 27 Oct 2014 23:40:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NRHzqMSjcQsWxG/Bqo1QNLpJTByQRHV+xUN7kKj6x/M=; b=JgwHMlIZGwLNli+obIodG7YI48BsrF8ZJ8EFxRyQidhDUJFvGczPnHqvHsDD8NLsqq frCu/AJrMJA7IMHU71VJicSqqrEZ2FlgLwbF1OBUSyH5J3ni0f6T7tH7te331Lc8thXc 1KfHTSsb8CT98e1bnR0wV0wqeqgXbUHPpLTBqp7O1rm+qmVsVlx/j98U3HJ5I2hlE0az aC6dnukBZ8oLjTAN4xHIaNvRyphf46HIcHLbSBpPHtbkS8eHBbyrYXY2qadmqDbw7sUh 6SDu6J7KbS0QQKGPKAIdDGWlI4ydcBWWKQNRc+GHgnsj3AkAYq/IufwKJoFdnCRCT6mo lcZw== X-Received: by 10.68.210.232 with SMTP id mx8mr1159601pbc.117.1414478413513; Mon, 27 Oct 2014 23:40:13 -0700 (PDT) Received: from cdac.hyderabad.cdac.in ([196.12.45.164]) by mx.google.com with ESMTPSA id ql6sm653315pbb.39.2014.10.27.23.40.10 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Oct 2014 23:40:12 -0700 (PDT) From: Varka Bhadram X-Google-Original-From: Varka Bhadram To: linux-gpio@vger.kernel.org Cc: gnurou@gmail.com, linus.walleij@linaro.org, Varka Bhadram Subject: [PATCH gpio v2 1/3] gpio: gpio-davinci: remove duplicate check on resource Date: Tue, 28 Oct 2014 12:07:05 +0530 Message-Id: <1414478227-24674-2-git-send-email-varkab@cdac.in> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1414478227-24674-1-git-send-email-varkab@cdac.in> References: <1414478227-24674-1-git-send-email-varkab@cdac.in> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alexandre Courbot --- drivers/gpio/gpio-davinci.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c index 9f06825..3faf5f9 100644 --- a/drivers/gpio/gpio-davinci.c +++ b/drivers/gpio/gpio-davinci.c @@ -234,11 +234,6 @@ static int davinci_gpio_probe(struct platform_device *pdev) return -ENOMEM; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) { - dev_err(dev, "Invalid memory resource\n"); - return -EBUSY; - } - gpio_base = devm_ioremap_resource(dev, res); if (IS_ERR(gpio_base)) return PTR_ERR(gpio_base);