Re: [PATCH] Fix n800 build - Remove kernel config conditional declaration of TSC2005 device config structures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

This patch is if i do not build with CONFIG_TOUCHSCREEN_TSC2005 enabled.

I am trying to build a bare basics kernel for the n800, and it seems
that arch/arm/mach-omap2/board-n800.c could do with some rearrangement
to not declare/use structures for devices not present in a n800 and
vice versa for the n810.

Im fairly newb, but could have a go at it, if it is deemed a good use of time.

Cheers

On Sun, May 25, 2008 at 10:45 AM,  <trickie@xxxxxxxxx> wrote:
>
> Signed-off-by: Nick Loeve <trickie@xxxxxxxxx>
> ---
>  arch/arm/mach-omap2/board-n800.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/board-n800.c b/arch/arm/mach-omap2/board-n800.c
> index ae85c2c..f902482 100644
> --- a/arch/arm/mach-omap2/board-n800.c
> +++ b/arch/arm/mach-omap2/board-n800.c
> @@ -372,7 +372,6 @@ static struct omap2_mcspi_device_config cx3110x_mcspi_config = {
>        .single_channel = 1,
>  };
>
> -#ifdef CONFIG_TOUCHSCREEN_TSC2005
>  static struct tsc2005_platform_data tsc2005_config = {
>        .reset_gpio = 94,
>        .dav_gpio = 106
> @@ -382,7 +381,6 @@ static struct omap2_mcspi_device_config tsc2005_mcspi_config = {
>        .turbo_mode     = 0,
>        .single_channel = 1,
>  };
> -#endif
>
>  static struct spi_board_info n800_spi_board_info[] __initdata = {
>        {
> --
> 1.5.5.1
>
>



-- 
Nick Loeve
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux