linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP: SX1: remove check for CONFIG_SX1_OLD_FLASH
@ 2014-05-15 19:41 Paul Bolle
  2014-05-16 21:12 ` Tony Lindgren
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Bolle @ 2014-05-15 19:41 UTC (permalink / raw)
  To: linux-arm-kernel

A check for CONFIG_SX1_OLD_FLASH was added in v2.6.24. But the related
Kconfig symbol was never part of the tree. So we can remove some dead
code.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
---
Also untested.

 arch/arm/mach-omap1/board-sx1.c | 26 --------------------------
 1 file changed, 26 deletions(-)

diff --git a/arch/arm/mach-omap1/board-sx1.c b/arch/arm/mach-omap1/board-sx1.c
index 0a8d3349149c..29e526235dc2 100644
--- a/arch/arm/mach-omap1/board-sx1.c
+++ b/arch/arm/mach-omap1/board-sx1.c
@@ -266,31 +266,6 @@ static struct physmap_flash_data sx1_flash_data = {
 	.nr_parts	= ARRAY_SIZE(sx1_partitions),
 };
 
-#ifdef CONFIG_SX1_OLD_FLASH
-/* MTD Intel StrataFlash - old flashes */
-static struct resource sx1_old_flash_resource[] = {
-	[0] = {
-		.start	= OMAP_CS0_PHYS,	/* Physical */
-		.end	= OMAP_CS0_PHYS + SZ_16M - 1,,
-		.flags	= IORESOURCE_MEM,
-	},
-	[1] = {
-		.start	= OMAP_CS1_PHYS,
-		.end	= OMAP_CS1_PHYS + SZ_8M - 1,
-		.flags	= IORESOURCE_MEM,
-	},
-};
-
-static struct platform_device sx1_flash_device = {
-	.name		= "physmap-flash",
-	.id		= 0,
-	.dev		= {
-		.platform_data	= &sx1_flash_data,
-	},
-	.num_resources	= 2,
-	.resource	= &sx1_old_flash_resource,
-};
-#else
 /* MTD Intel 4000 flash - new flashes */
 static struct resource sx1_new_flash_resource = {
 	.start		= OMAP_CS0_PHYS,
@@ -307,7 +282,6 @@ static struct platform_device sx1_flash_device = {
 	.num_resources	= 1,
 	.resource	= &sx1_new_flash_resource,
 };
-#endif
 
 /*----------- USB -------------------------*/
 
-- 
1.9.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH] ARM: OMAP: SX1: remove check for CONFIG_SX1_OLD_FLASH
  2014-05-15 19:41 [PATCH] ARM: OMAP: SX1: remove check for CONFIG_SX1_OLD_FLASH Paul Bolle
@ 2014-05-16 21:12 ` Tony Lindgren
  2014-05-29 19:02   ` Pavel Machek
  0 siblings, 1 reply; 5+ messages in thread
From: Tony Lindgren @ 2014-05-16 21:12 UTC (permalink / raw)
  To: linux-arm-kernel

* Paul Bolle <pebolle@tiscali.nl> [140515 12:42]:
> A check for CONFIG_SX1_OLD_FLASH was added in v2.6.24. But the related
> Kconfig symbol was never part of the tree. So we can remove some dead
> code.

Thanks applying into omap-for-v3.16/board.

Tony

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] ARM: OMAP: SX1: remove check for CONFIG_SX1_OLD_FLASH
  2014-05-16 21:12 ` Tony Lindgren
@ 2014-05-29 19:02   ` Pavel Machek
  2014-05-29 19:17     ` Tony Lindgren
  0 siblings, 1 reply; 5+ messages in thread
From: Pavel Machek @ 2014-05-29 19:02 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri 2014-05-16 14:12:31, Tony Lindgren wrote:
> * Paul Bolle <pebolle@tiscali.nl> [140515 12:42]:
> > A check for CONFIG_SX1_OLD_FLASH was added in v2.6.24. But the related
> > Kconfig symbol was never part of the tree. So we can remove some dead
> > code.
> 
> Thanks applying into omap-for-v3.16/board.

Actually... It seems there are two variant of SX1, and this is very
useful piece of documentation how the _other_ variant looks.

And if someone is hacking linux on sx1, he can probably figure out
#ifdef in .c file...

IOW adding the config option might be better solution.
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] ARM: OMAP: SX1: remove check for CONFIG_SX1_OLD_FLASH
  2014-05-29 19:02   ` Pavel Machek
@ 2014-05-29 19:17     ` Tony Lindgren
  2014-05-29 19:42       ` Pavel Machek
  0 siblings, 1 reply; 5+ messages in thread
From: Tony Lindgren @ 2014-05-29 19:17 UTC (permalink / raw)
  To: linux-arm-kernel

* Pavel Machek <pavel@ucw.cz> [140529 12:03]:
> On Fri 2014-05-16 14:12:31, Tony Lindgren wrote:
> > * Paul Bolle <pebolle@tiscali.nl> [140515 12:42]:
> > > A check for CONFIG_SX1_OLD_FLASH was added in v2.6.24. But the related
> > > Kconfig symbol was never part of the tree. So we can remove some dead
> > > code.
> > 
> > Thanks applying into omap-for-v3.16/board.
> 
> Actually... It seems there are two variant of SX1, and this is very
> useful piece of documentation how the _other_ variant looks.
> 
> And if someone is hacking linux on sx1, he can probably figure out
> #ifdef in .c file...
> 
> IOW adding the config option might be better solution.

Or just a comment saying the same?

Regards,

Tony

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] ARM: OMAP: SX1: remove check for CONFIG_SX1_OLD_FLASH
  2014-05-29 19:17     ` Tony Lindgren
@ 2014-05-29 19:42       ` Pavel Machek
  0 siblings, 0 replies; 5+ messages in thread
From: Pavel Machek @ 2014-05-29 19:42 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu 2014-05-29 12:17:39, Tony Lindgren wrote:
> * Pavel Machek <pavel@ucw.cz> [140529 12:03]:
> > On Fri 2014-05-16 14:12:31, Tony Lindgren wrote:
> > > * Paul Bolle <pebolle@tiscali.nl> [140515 12:42]:
> > > > A check for CONFIG_SX1_OLD_FLASH was added in v2.6.24. But the related
> > > > Kconfig symbol was never part of the tree. So we can remove some dead
> > > > code.
> > > 
> > > Thanks applying into omap-for-v3.16/board.
> > 
> > Actually... It seems there are two variant of SX1, and this is very
> > useful piece of documentation how the _other_ variant looks.
> > 
> > And if someone is hacking linux on sx1, he can probably figure out
> > #ifdef in .c file...
> > 
> > IOW adding the config option might be better solution.
> 
> Or just a comment saying the same?

Yes, #if 0 with a comment would do the same trick.
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-05-29 19:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-15 19:41 [PATCH] ARM: OMAP: SX1: remove check for CONFIG_SX1_OLD_FLASH Paul Bolle
2014-05-16 21:12 ` Tony Lindgren
2014-05-29 19:02   ` Pavel Machek
2014-05-29 19:17     ` Tony Lindgren
2014-05-29 19:42       ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).