mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 00:30:53 +07:00
9705e74671
Due to commit 88f718e3fa
"ARM: pxa: delete the custom GPIO header" some drivers fail
compilation, for example like this:
In file included from sound/soc/pxa/spitz.c:28:0:
sound/soc/pxa/spitz.c: In function ‘spitz_ext_control’:
arch/arm/mach-pxa/include/mach/spitz.h:111:30: error:
‘PXA_NR_BUILTIN_GPIO’ undeclared (first use in this function)
#define SPITZ_SCP_GPIO_BASE (PXA_NR_BUILTIN_GPIO)
(etc.)
This is caused by implicit inclusion of <mach/irqs.h> from
various board-specific headers under <mach/*> in the PXA
platform. So we take a sweep over these, and for every such
header that uses PXA_NR_BUILTIN_GPIO or PXA_GPIO_TO_IRQ()
we explicitly #include "irqs.h" so that we satisfy the
dependency in the board include file alone.
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: stable@vger.kernel.org # v3.13+
Signed-off-by: Kevin Hilman <khilman@linaro.org>
29 lines
707 B
C
29 lines
707 B
C
/*
|
|
* Support for Cogent CSB726
|
|
*
|
|
* Copyright (c) 2008 Dmitry Baryshkov
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
*/
|
|
#ifndef CSB726_H
|
|
#define CSB726_H
|
|
|
|
#include "irqs.h" /* PXA_GPIO_TO_IRQ */
|
|
|
|
#define CSB726_GPIO_IRQ_LAN 52
|
|
#define CSB726_GPIO_IRQ_SM501 53
|
|
#define CSB726_GPIO_MMC_DETECT 100
|
|
#define CSB726_GPIO_MMC_RO 101
|
|
|
|
#define CSB726_FLASH_SIZE (64 * 1024 * 1024)
|
|
#define CSB726_FLASH_uMON (8 * 1024 * 1024)
|
|
|
|
#define CSB726_IRQ_LAN PXA_GPIO_TO_IRQ(CSB726_GPIO_IRQ_LAN)
|
|
#define CSB726_IRQ_SM501 PXA_GPIO_TO_IRQ(CSB726_GPIO_IRQ_SM501)
|
|
|
|
#endif
|
|
|