Re: [PATCH 1/3] ARM: pxa168: Remove MTD specific headers

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

 




On Monday 18 July 2011 01:21 PM, Eric Miao wrote:
On Mon, Jul 18, 2011 at 2:52 PM, Tanmay Upadhyay
<tanmay.upadhyay@xxxxxxxxxxxxxx>  wrote:
mtd.h defines 'DEBUG' which unintentionally changes behavior
I guess the right solution is to fix mtd.h instead of pxa3xx_nand.h
I think you are right, but it requires modifying 27 files in 'drivers/mtd/'. I am little scared to do so. Will it be ok to do so? Included MTD maintainer (David Woodhouse) and mailing list in the loop. Please suggest.
of other files that includes pxa3xx_nand.h OR pxa168.h. Anyway,
neither mtd/mtd.h nor mtd/partitions.h is needed here
There is a reference of 'struct mtd_partition' below. Though it's possible
to remove mtd header references, and declare 'struct mtd_partition' as
opaque, the mtd header files are still needed when defining partition
layout in board file.
I agree with you. I just thought the board files would include the header.

Thanks,

Tanmay
Signed-off-by: Tanmay Upadhyay<tanmay.upadhyay@xxxxxxxxxxxxxx>
---
  arch/arm/plat-pxa/include/plat/pxa3xx_nand.h |    3 ---
  1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/arch/arm/plat-pxa/include/plat/pxa3xx_nand.h b/arch/arm/plat-pxa/include/plat/pxa3xx_nand.h
index 442301f..641c781 100644
--- a/arch/arm/plat-pxa/include/plat/pxa3xx_nand.h
+++ b/arch/arm/plat-pxa/include/plat/pxa3xx_nand.h
@@ -1,9 +1,6 @@
  #ifndef __ASM_ARCH_PXA3XX_NAND_H
  #define __ASM_ARCH_PXA3XX_NAND_H

-#include<linux/mtd/mtd.h>
-#include<linux/mtd/partitions.h>
-
  struct pxa3xx_nand_timing {
        unsigned int    tCH;  /* Enable signal hold time */
        unsigned int    tCS;  /* Enable signal setup time */
--
1.7.0.4


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


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux