Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932134Ab0HaEw4 (ORCPT ); Tue, 31 Aug 2010 00:52:56 -0400 Received: from eu1sys200aog110.obsmtp.com ([207.126.144.129]:53756 "EHLO eu1sys200aog110.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754479Ab0HaEwz (ORCPT ); Tue, 31 Aug 2010 00:52:55 -0400 From: Virupax Sadashivpetimath To: , , Cc: , , , Subject: [PATCH] stmpe-gpio: Handle platform data with no gpio base Date: Tue, 31 Aug 2010 10:04:56 +0530 Message-ID: <1283229296-16733-1-git-send-email-virupax.sadashivpetimath@stericsson.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 943 Lines: 30 This patch removes the requirement that gpio base be supplied in platform data. Signed-off-by: Virupax Sadashivpetimath Acked-by: Linus Walleij --- drivers/gpio/stmpe-gpio.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/stmpe-gpio.c b/drivers/gpio/stmpe-gpio.c index 65b9960..932759d 100644 --- a/drivers/gpio/stmpe-gpio.c +++ b/drivers/gpio/stmpe-gpio.c @@ -291,8 +291,6 @@ static int __devinit stmpe_gpio_probe(struct platform_device *pdev) int irq; pdata = stmpe->pdata->gpio; - if (!pdata) - return -ENODEV; irq = platform_get_irq(pdev, 0); if (irq < 0) -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/