Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3085974imm; Mon, 10 Sep 2018 10:47:06 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYTg8Di+idVP4UvNF93IbglPlh7oCTit2Mbhrb/6Av+ZWzSPFlISYah2Mk3RTd9AiETQdnN X-Received: by 2002:a63:3089:: with SMTP id w131-v6mr23508825pgw.79.1536601626257; Mon, 10 Sep 2018 10:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536601626; cv=none; d=google.com; s=arc-20160816; b=RSeugUvDIeE2YYnBTI6gXBZRmE/vsRvxUM4rI8MkxipPSvwcPGFur4uvou2fSDCzNl TfdGsSjWHWktr2uCfvIQIDTGmymvMIPrcGQrqKZYET70O3PbCAIMZQi32gY7r85ezMt5 wM2O0jvZvKm3kSJGoTb497+PJ61x7Alh5jFDMI4U0n/JSWqaIJQxjUjPD122WZaJKVF5 bAekGb30EoqAgq2iGUgRIhSFdBJnuAJ9m8NWKnEjLr5CdPoivxtzga/hC0v6Nvvk5I9z bbuwp9BrAJpJERWedIBEJAAuy9XpiY6CdmApNMiv844WD3VTQdZY+mvDcUNNK9Pl4QTC QQvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=Wtk+EBGKaQy0nbRlL54eNI7K87OTLBPD4Q9HDrFpXJ4=; b=QGcb+qkGvANgnfZXoIpT9vbFGKL1iBHTpn6fu7Hq9JwiKjulb9IdpH3+9NLK+mSd5/ QH63x3Wje45TY1Ud3FRSD5p1RsKFHHh9/5iU2/5hh/0nwfzHBluf8tM2YJXnbLmmrdsC sN+4kpmAIVh+af641SLCY5hmW45ZxhcTGwlklde/LU4n9R9gs7L4RC9oiRu5HLNjUsyN YG2lOJWWdC4y8wWDlkOLYCOBU/F/VHDWERE6j3rPT+w4CaQu+YXjRRjX6RskQwDlaYHe Yv0QiZIbvbUynm32IxglTfS5A71mr2CqKveneB6E8E2TGT49y0uxwzYVt7GpZBtkuuD3 KZ3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t7nzvgke; 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 r69-v6si17163506pfl.260.2018.09.10.10.46.30; Mon, 10 Sep 2018 10:47:06 -0700 (PDT) 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=t7nzvgke; 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 S1728477AbeIJWl2 (ORCPT + 99 others); Mon, 10 Sep 2018 18:41:28 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:43270 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726906AbeIJWl1 (ORCPT ); Mon, 10 Sep 2018 18:41:27 -0400 Received: by mail-lj1-f195.google.com with SMTP id m84-v6so18608524lje.10; Mon, 10 Sep 2018 10:46:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Wtk+EBGKaQy0nbRlL54eNI7K87OTLBPD4Q9HDrFpXJ4=; b=t7nzvgkeXSonzrbIT2+hc1gBVe3n/ZHeeWuroKnTwb74HaDaPrrC8LDWNA+pN1NR4a llFYDeCdHNYpO02Jox8LOgaRiIGQxqYb75Ybig/0diIiZ+JwCgeNsY1eCkrcLL83g37D 3KlJcZ30x+s76kYIaXI6Ijxyie+WJ8iiJm2WqWmFQHp9sgoXo2J4/JTV9VX6fZa1Oq9o CDp/TWJsCCUcz4LcfgqgQX3Yz09zUO1qiPdDIIRCbzLAMwfR2MwWmGrplFIIZfp+t8se M1afx+qtD7dYZOwc8MeuGHrTalSro28h7vlXARhwwJ/i2y0BExYMqZI3ppb5LkKe6gl+ a6Ig== 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; bh=Wtk+EBGKaQy0nbRlL54eNI7K87OTLBPD4Q9HDrFpXJ4=; b=WPJCp/DhzRhdoydsB6Av0lLO4qvCABGZU+qUPKFZB2DRO4nwV36fBTccdBpyGuivkj XqVkhc26w9Fy1nnB+vLK9+rVkxbbz1c/hzUzAiQiRXxPBeeHAGPvhATdjB2wCpKm/7iP iYo/y9NWE4lZ8c81KYqKF+nu0fM2w4iPeUcdRfEmFUJi+CGu/dG4tSM5A6QPR6zU0Ep+ IUj1R1JTsonpldk6vOfjK7UwYa9FEn57SxO6ER93hOVCjaHs8eQ1SaTMUNhBteAP0Cs2 Sx7SudYIseQTw0QldEl1oDbvRFciJ111p/zpq4r5kxWJJY3yI34a00D+i8djcEMcs7Ed VX8Q== X-Gm-Message-State: APzg51C3aR0J1QruyfrPGocGbg34qgTySKLy81h4gFnybmvIV2rTY45n cgyKThpjF12hXpvhfBPKjCM= X-Received: by 2002:a2e:9448:: with SMTP id o8-v6mr12992151ljh.34.1536601573506; Mon, 10 Sep 2018 10:46:13 -0700 (PDT) Received: from z50.lan (93-181-165-181.internetia.net.pl. [93.181.165.181]) by smtp.gmail.com with ESMTPSA id r63-v6sm2897896lja.18.2018.09.10.10.46.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Sep 2018 10:46:12 -0700 (PDT) From: Janusz Krzysztofik To: Tony Lindgren Cc: Aaro Koskinen , Janusz Krzysztofik , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: OMAP1: ams-delta-fiq: Use Date: Mon, 10 Sep 2018 19:47:22 +0200 Message-Id: <20180910174722.15679-1-jmkrzyszt@gmail.com> X-Mailer: git-send-email 2.16.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Instead of defining symbols already defined in linux/platform_data/gpio-omap.h, use that header file. Since we include the header into an assembler code, prevent C only bits from being read in. Signed-off-by: Janusz Krzysztofik --- arch/arm/mach-omap1/ams-delta-fiq-handler.S | 12 +++--------- include/linux/platform_data/gpio-omap.h | 4 ++++ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-omap1/ams-delta-fiq-handler.S b/arch/arm/mach-omap1/ams-delta-fiq-handler.S index 2e2a17364dc9..7c9fb7fe0070 100644 --- a/arch/arm/mach-omap1/ams-delta-fiq-handler.S +++ b/arch/arm/mach-omap1/ams-delta-fiq-handler.S @@ -15,6 +15,7 @@ #include #include +#include #include @@ -24,17 +25,10 @@ #include "soc.h" /* - * GPIO related definitions, copied from arch/arm/plat-omap/gpio.c. - * Unfortunately, those were not placed in a separate header file. + * OMAP1510 GPIO related symbol copied from arch/arm/mach-omap1/gpio15xx.c. + * Unfortunately, it was not placed in a separate header file. */ #define OMAP1510_GPIO_BASE 0xFFFCE000 -#define OMAP1510_GPIO_DATA_INPUT 0x00 -#define OMAP1510_GPIO_DATA_OUTPUT 0x04 -#define OMAP1510_GPIO_DIR_CONTROL 0x08 -#define OMAP1510_GPIO_INT_CONTROL 0x0c -#define OMAP1510_GPIO_INT_MASK 0x10 -#define OMAP1510_GPIO_INT_STATUS 0x14 -#define OMAP1510_GPIO_PIN_CONTROL 0x18 /* GPIO register bitmasks */ #define KEYBRD_DATA_MASK (0x1 << AMS_DELTA_GPIO_PIN_KEYBRD_DATA) diff --git a/include/linux/platform_data/gpio-omap.h b/include/linux/platform_data/gpio-omap.h index 8612855691b2..ed071f76b642 100644 --- a/include/linux/platform_data/gpio-omap.h +++ b/include/linux/platform_data/gpio-omap.h @@ -24,8 +24,10 @@ #ifndef __ASM_ARCH_OMAP_GPIO_H #define __ASM_ARCH_OMAP_GPIO_H +#ifndef __ASSEMBLER__ #include #include +#endif #define OMAP1_MPUIO_BASE 0xfffb5000 @@ -157,6 +159,7 @@ #define OMAP_MPUIO(nr) (OMAP_MAX_GPIO_LINES + (nr)) #define OMAP_GPIO_IS_MPUIO(nr) ((nr) >= OMAP_MAX_GPIO_LINES) +#ifndef __ASSEMBLER__ struct omap_gpio_reg_offs { u16 revision; u16 direction; @@ -215,5 +218,6 @@ static inline void omap2_gpio_resume_after_idle(void) { } #endif +#endif /* __ASSEMBLER__ */ #endif -- 2.16.4