* [PATCH] NAND: DaVinci: Removed header file that is not required
@ 2011-03-01 22:40 s-paulraj
2011-03-07 9:01 ` Artem Bityutskiy
0 siblings, 1 reply; 4+ messages in thread
From: s-paulraj @ 2011-03-01 22:40 UTC (permalink / raw)
To: davinci-linux-open-source, linux-mtd; +Cc: Sandeep Paulraj
From: Sandeep Paulraj <s-paulraj@ti.com>
The DaVinci NAND driver was including the mach-types.h header
file.
This prevented the DaVinci NAND driver from getting used
in a DSP only device. The linux port on c6x devices can make
use of the same driver and does not define a corresponding
header file; so removing it.
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
---
drivers/mtd/nand/davinci_nand.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c
index a90fde3..aff3468 100644
--- a/drivers/mtd/nand/davinci_nand.c
+++ b/drivers/mtd/nand/davinci_nand.c
@@ -37,9 +37,6 @@
#include <mach/nand.h>
#include <mach/aemif.h>
-#include <asm/mach-types.h>
-
-
/*
* This is a device driver for the NAND flash controller found on the
* various DaVinci family chips. It handles up to four SoC chipselects,
--
1.6.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] NAND: DaVinci: Removed header file that is not required
2011-03-01 22:40 [PATCH] NAND: DaVinci: Removed header file that is not required s-paulraj
@ 2011-03-07 9:01 ` Artem Bityutskiy
2011-03-07 14:57 ` Paulraj, Sandeep
0 siblings, 1 reply; 4+ messages in thread
From: Artem Bityutskiy @ 2011-03-07 9:01 UTC (permalink / raw)
To: s-paulraj; +Cc: davinci-linux-open-source, linux-mtd
On Tue, 2011-03-01 at 17:40 -0500, s-paulraj@ti.com wrote:
> From: Sandeep Paulraj <s-paulraj@ti.com>
>
> The DaVinci NAND driver was including the mach-types.h header
> file.
> This prevented the DaVinci NAND driver from getting used
> in a DSP only device. The linux port on c6x devices can make
> use of the same driver and does not define a corresponding
> header file; so removing it.
>
> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Hi,
you explain why this include is bad for DSP. Buy you do not explain why
this include is there and why removing it is harmless for Linux.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] NAND: DaVinci: Removed header file that is not required
2011-03-07 9:01 ` Artem Bityutskiy
@ 2011-03-07 14:57 ` Paulraj, Sandeep
2011-03-07 17:57 ` Artem Bityutskiy
0 siblings, 1 reply; 4+ messages in thread
From: Paulraj, Sandeep @ 2011-03-07 14:57 UTC (permalink / raw)
To: dedekind1@gmail.com
Cc: davinci-linux-open-source@linux.davincidsp.com,
linux-mtd@lists.infradead.org
>
> On Tue, 2011-03-01 at 17:40 -0500, s-paulraj@ti.com wrote:
> > From: Sandeep Paulraj <s-paulraj@ti.com>
> >
> > The DaVinci NAND driver was including the mach-types.h header
> > file.
> > This prevented the DaVinci NAND driver from getting used
> > in a DSP only device. The linux port on c6x devices can make
> > use of the same driver and does not define a corresponding
> > header file; so removing it.
> >
> > Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
>
> Hi,
>
> you explain why this include is bad for DSP. Buy you do not explain why
> this include is there and why removing it is harmless for Linux.
>
Hi,
This header file was required in the driver because earlier there was code dependent on a machine_* check. This piece of code has now been factored out and is in /arch/arm/mach-davinci/aemif.c.
Thus removing it is harmless.
Please do let me know if you need an updated patch.
Regards,
Sandeep
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] NAND: DaVinci: Removed header file that is not required
2011-03-07 14:57 ` Paulraj, Sandeep
@ 2011-03-07 17:57 ` Artem Bityutskiy
0 siblings, 0 replies; 4+ messages in thread
From: Artem Bityutskiy @ 2011-03-07 17:57 UTC (permalink / raw)
To: Paulraj, Sandeep
Cc: davinci-linux-open-source@linux.davincidsp.com,
linux-mtd@lists.infradead.org
On Mon, 2011-03-07 at 08:57 -0600, Paulraj, Sandeep wrote:
> >
> > On Tue, 2011-03-01 at 17:40 -0500, s-paulraj@ti.com wrote:
> > > From: Sandeep Paulraj <s-paulraj@ti.com>
> > >
> > > The DaVinci NAND driver was including the mach-types.h header
> > > file.
> > > This prevented the DaVinci NAND driver from getting used
> > > in a DSP only device. The linux port on c6x devices can make
> > > use of the same driver and does not define a corresponding
> > > header file; so removing it.
> > >
> > > Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
> >
> > Hi,
> >
> > you explain why this include is bad for DSP. Buy you do not explain
> why
> > this include is there and why removing it is harmless for Linux.
> >
>
> Hi,
>
> This header file was required in the driver because earlier there was
> code dependent on a machine_* check. This piece of code has now been
> factored out and is in /arch/arm/mach-davinci/aemif.c.
>
> Thus removing it is harmless.
>
> Please do let me know if you need an updated patch.
Yes, please, patch description should contain this important
information.
--
Best Regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-07 17:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-01 22:40 [PATCH] NAND: DaVinci: Removed header file that is not required s-paulraj
2011-03-07 9:01 ` Artem Bityutskiy
2011-03-07 14:57 ` Paulraj, Sandeep
2011-03-07 17:57 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox