Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp22748imu; Wed, 7 Nov 2018 12:18:52 -0800 (PST) X-Google-Smtp-Source: AJdET5dE/aeP/ULeiu/JHcSNx740flmPvwG0P+RGoi8sQLw3LlERi9IoGoNceyWGIK45pl3mxsie X-Received: by 2002:a63:f006:: with SMTP id k6mr1436522pgh.259.1541621932009; Wed, 07 Nov 2018 12:18:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541621931; cv=none; d=google.com; s=arc-20160816; b=e7hFq1JUbx7PVT6v/mfPa1D/7IAA/gfajcqrPVEYXMqg9IX+oxByK1iMivAzG+EiOw ZL9uRMztHUCKkoB3UXFuTs5V68OT4gFw84YRAojd42TpxJuMR5T37rMYVPexzmpjPg84 EHxK2Pml2VMDmA1MoSrTUBFmL7PZvOdVsAdhYajSxD7jemo5c/34SDBp8qFcy6DzHG+J SvDdrljlr9ciCcD8XU9woWgku6HGzb/ZxZaolVA0iQiiEuvvi86ZhCabfiVjC2Km0mc7 RubFGg+kTwCq+7M+e60z5HZxWl7BRAsHltXf7HNCgopB6q5THPLQwG+QbdzC8HinSZhX 6TjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=39mD7pgVBuElFJQ3mjWUtS+vlqTvSmmnI9p5XoWxu2c=; b=P3VvwWxyLrsYQvUbzrBmn2Iq7+b943kRoZJD58X4viH+iodSIcaJznrfOCNS0d6DnH mXfNrmRvYNTjywFCkMcuRrcMWwYHdVgH2p3aawjU8kGwCC0S9wC2iwhN5Qq7fRF4fjWC 3zAGITb6l6WJ4eDVNLaHi0lyztlN420WVpTrKQnap5/OxVDeDjvYQMxDtQBu1a6KZGX1 q8lDO5ztWvnpcucc1GH6dy95UMnQVH/CN3VPQhS6XCIHerSYaTQoIn3A0Ae2mHOuSHwt 3GKeY/yS/uM/973Vy+ieydQYOj7UsByVlxpU8KQXt9hzf21/MBUV5vkQ5x39tjNyKaYd NUfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Poswbhgf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f69-v6si1473339pgc.304.2018.11.07.12.18.34; Wed, 07 Nov 2018 12:18:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Poswbhgf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726842AbeKHFsN (ORCPT + 99 others); Thu, 8 Nov 2018 00:48:13 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:39284 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726524AbeKHFsM (ORCPT ); Thu, 8 Nov 2018 00:48:12 -0500 Received: by mail-lf1-f66.google.com with SMTP id n18so12441203lfh.6; Wed, 07 Nov 2018 12:16:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=39mD7pgVBuElFJQ3mjWUtS+vlqTvSmmnI9p5XoWxu2c=; b=PoswbhgfLu+Y1TgpE7Vw26Nget0TxVpH0ftCItkypEY2qHc+OWSwfFzZCTCaWhL6qr m7sTF2yVw/orK7cwlhdCn+TWNdmuhcbVRlY05p7bSjUX/tuQf2dT7+TJEfyjYwJIDIaO Rw8S+og6WSoYO01OwVCJBzL/kBBiG0cibc5J7/+raSzpUfzRCY2PjI9lw6+hbpx6RBuX eb/9PPlPhHmx7YjIl8iHVHcwuzTTPNPaxQrQz7si0pB8S72avsJl1fmVo0kCL+O0U6tJ i/O+r3+NC0TbqbOrMivcIZclP3sdiv6SSqvTiGdYn13oJBG44ggiMU3oksbFrsRSZuHp 2W7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=39mD7pgVBuElFJQ3mjWUtS+vlqTvSmmnI9p5XoWxu2c=; b=tuEssjzbMr2Srw/kSVexOxSnwavzErkPrhLJiHTj4vL/MxTpr7eVNJFbGzAKoiJfjg evzgnAkafcA5Hg90598ffMQjpF062MbU0rzDkfiUKgI1eOaneVDwcD04RxycoA+iqQVq vgsh0EbMQYqWCvj7L13JSEVw9qg6ekBhfFYyntpGakg5dglHQnH+ZeTDgnkZ+kRXEnid g+jVOp1EzE7avWq4gY94coBwT+UM+tZCyi3HPD768bR4DvlbMogKKD7OCPVOhcUOWqOb 20asshIfdIHIXUP5HHAN7IirGj7VrWrkZlqCpAlfh9tnVtycKsgKp0HyxPmTYS2RzH0B 32Og== X-Gm-Message-State: AGRZ1gImFi7zTnJIEgxSQet8Yxfx3v583pzS1K88ZZ3DOtJhiAak8pRC XcTqkmh1EpW2JmZMTtwiTvs= X-Received: by 2002:a19:7919:: with SMTP id u25mr962730lfc.18.1541621774451; Wed, 07 Nov 2018 12:16:14 -0800 (PST) Received: from z50.lan (93-181-165-181.internetia.net.pl. [93.181.165.181]) by smtp.gmail.com with ESMTPSA id c19sm285650lfg.86.2018.11.07.12.16.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Nov 2018 12:16:13 -0800 (PST) From: Janusz Krzysztofik To: Tony Lindgren Cc: Aaro Koskinen , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Janusz Krzysztofik Subject: [PATCH 1/3] ARM: OMAP1: ams-delta: Drop board specific global GPIO numbers Date: Wed, 7 Nov 2018 21:17:44 +0100 Message-Id: <20181107201746.14705-2-jmkrzyszt@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20181107201746.14705-1-jmkrzyszt@gmail.com> References: <20181107201746.14705-1-jmkrzyszt@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As all users of the board specific GPIO pins have been converted from legacy integer-based to descriptor-based interface, there is no longer a need to maintain statically assigned GPIO pin numbers. Drop support for that. Signed-off-by: Janusz Krzysztofik --- arch/arm/mach-omap1/board-ams-delta.c | 3 --- arch/arm/mach-omap1/board-ams-delta.h | 16 ---------------- 2 files changed, 19 deletions(-) diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c index 19e0c071d675..a6986a83a916 100644 --- a/arch/arm/mach-omap1/board-ams-delta.c +++ b/arch/arm/mach-omap1/board-ams-delta.c @@ -167,7 +167,6 @@ static struct omap_usb_config ams_delta_usb_config __initdata = { .pins[0] = 2, }; -#define LATCH1_GPIO_BASE 232 #define LATCH1_NGPIO 8 static struct resource latch1_resources[] = { @@ -183,7 +182,6 @@ static struct resource latch1_resources[] = { static struct bgpio_pdata latch1_pdata = { .label = LATCH1_LABEL, - .base = LATCH1_GPIO_BASE, .ngpio = LATCH1_NGPIO, }; @@ -219,7 +217,6 @@ static struct resource latch2_resources[] = { static struct bgpio_pdata latch2_pdata = { .label = LATCH2_LABEL, - .base = AMS_DELTA_LATCH2_GPIO_BASE, .ngpio = AMS_DELTA_LATCH2_NGPIO, }; diff --git a/arch/arm/mach-omap1/board-ams-delta.h b/arch/arm/mach-omap1/board-ams-delta.h index a74a306d7e77..06e4c64a47f8 100644 --- a/arch/arm/mach-omap1/board-ams-delta.h +++ b/arch/arm/mach-omap1/board-ams-delta.h @@ -41,22 +41,6 @@ #define AMS_DELTA_GPIO_PIN_CONFIG 11 #define AMS_DELTA_GPIO_PIN_NAND_RB 12 -#define AMS_DELTA_GPIO_PIN_LCD_VBLEN 240 -#define AMS_DELTA_GPIO_PIN_LCD_NDISP 241 -#define AMS_DELTA_GPIO_PIN_NAND_NCE 242 -#define AMS_DELTA_GPIO_PIN_NAND_NRE 243 -#define AMS_DELTA_GPIO_PIN_NAND_NWP 244 -#define AMS_DELTA_GPIO_PIN_NAND_NWE 245 -#define AMS_DELTA_GPIO_PIN_NAND_ALE 246 -#define AMS_DELTA_GPIO_PIN_NAND_CLE 247 -#define AMS_DELTA_GPIO_PIN_KEYBRD_PWR 248 -#define AMS_DELTA_GPIO_PIN_KEYBRD_DATAOUT 249 -#define AMS_DELTA_GPIO_PIN_SCARD_RSTIN 250 -#define AMS_DELTA_GPIO_PIN_SCARD_CMDVCC 251 -#define AMS_DELTA_GPIO_PIN_MODEM_NRESET 252 -#define AMS_DELTA_GPIO_PIN_MODEM_CODEC 253 - -#define AMS_DELTA_LATCH2_GPIO_BASE AMS_DELTA_GPIO_PIN_LCD_VBLEN #define AMS_DELTA_LATCH2_NGPIO 16 #endif /* CONFIG_MACH_AMS_DELTA */ -- 2.16.4