linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: zajec5@gmail.com (Rafał Miłecki)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: don't set unused name in struct flash_platform_data
Date: Mon, 29 Sep 2014 14:30:53 +0200	[thread overview]
Message-ID: <1411993853-6309-1-git-send-email-zajec5@gmail.com> (raw)

Loading correct SPI driver (m25p80) is handled using modalias from the
struct spi_board_info. There is no point of setting name in the
platform_data, m25p80 ignores it anyway.

Signed-off-by: Rafa? Mi?ecki <zajec5@gmail.com>
---
 arch/arm/mach-davinci/board-da830-evm.c    | 1 -
 arch/arm/mach-davinci/board-da850-evm.c    | 1 -
 arch/arm/mach-davinci/board-mityomapl138.c | 1 -
 arch/arm/mach-shmobile/board-bockw.c       | 1 -
 arch/arm/mach-shmobile/board-koelsch.c     | 1 -
 arch/arm/mach-shmobile/board-lager.c       | 1 -
 arch/arm/mach-w90x900/dev.c                | 1 -
 7 files changed, 7 deletions(-)

diff --git a/arch/arm/mach-davinci/board-da830-evm.c b/arch/arm/mach-davinci/board-da830-evm.c
index 5623131..263004a 100644
--- a/arch/arm/mach-davinci/board-da830-evm.c
+++ b/arch/arm/mach-davinci/board-da830-evm.c
@@ -567,7 +567,6 @@ static struct mtd_partition da830evm_spiflash_part[] = {
 };
 
 static struct flash_platform_data da830evm_spiflash_data = {
-	.name		= "m25p80",
 	.parts		= da830evm_spiflash_part,
 	.nr_parts	= ARRAY_SIZE(da830evm_spiflash_part),
 	.type		= "w25x32",
diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c
index 234c5bb..721ff2b 100644
--- a/arch/arm/mach-davinci/board-da850-evm.c
+++ b/arch/arm/mach-davinci/board-da850-evm.c
@@ -104,7 +104,6 @@ static struct mtd_partition da850evm_spiflash_part[] = {
 };
 
 static struct flash_platform_data da850evm_spiflash_data = {
-	.name		= "m25p80",
 	.parts		= da850evm_spiflash_part,
 	.nr_parts	= ARRAY_SIZE(da850evm_spiflash_part),
 	.type		= "m25p64",
diff --git a/arch/arm/mach-davinci/board-mityomapl138.c b/arch/arm/mach-davinci/board-mityomapl138.c
index 96fc00a..3c93b65 100644
--- a/arch/arm/mach-davinci/board-mityomapl138.c
+++ b/arch/arm/mach-davinci/board-mityomapl138.c
@@ -350,7 +350,6 @@ static struct mtd_partition spi_flash_partitions[] = {
 };
 
 static struct flash_platform_data mityomapl138_spi_flash_data = {
-	.name		= "m25p80",
 	.parts		= spi_flash_partitions,
 	.nr_parts	= ARRAY_SIZE(spi_flash_partitions),
 	.type		= "m24p64",
diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c
index 8a83eb3..e25af56 100644
--- a/arch/arm/mach-shmobile/board-bockw.c
+++ b/arch/arm/mach-shmobile/board-bockw.c
@@ -266,7 +266,6 @@ static struct mtd_partition m25p80_spi_flash_partitions[] = {
 };
 
 static struct flash_platform_data spi_flash_data = {
-	.name		= "m25p80",
 	.type		= "s25fl008k",
 	.parts		= m25p80_spi_flash_partitions,
 	.nr_parts	= ARRAY_SIZE(m25p80_spi_flash_partitions),
diff --git a/arch/arm/mach-shmobile/board-koelsch.c b/arch/arm/mach-shmobile/board-koelsch.c
index b7d5bc7..a494a00 100644
--- a/arch/arm/mach-shmobile/board-koelsch.c
+++ b/arch/arm/mach-shmobile/board-koelsch.c
@@ -207,7 +207,6 @@ static struct mtd_partition spi_flash_part[] = {
 };
 
 static const struct flash_platform_data spi_flash_data = {
-	.name		= "m25p80",
 	.parts		= spi_flash_part,
 	.nr_parts	= ARRAY_SIZE(spi_flash_part),
 	.type		= "s25fl512s",
diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c
index e1d8215..3575731 100644
--- a/arch/arm/mach-shmobile/board-lager.c
+++ b/arch/arm/mach-shmobile/board-lager.c
@@ -315,7 +315,6 @@ static struct mtd_partition spi_flash_part[] = {
 };
 
 static const struct flash_platform_data spi_flash_data = {
-	.name           = "m25p80",
 	.parts          = spi_flash_part,
 	.nr_parts       = ARRAY_SIZE(spi_flash_part),
 	.type           = "s25fl512s",
diff --git a/arch/arm/mach-w90x900/dev.c b/arch/arm/mach-w90x900/dev.c
index e65a80a..9745a73 100644
--- a/arch/arm/mach-w90x900/dev.c
+++ b/arch/arm/mach-w90x900/dev.c
@@ -249,7 +249,6 @@ static struct mtd_partition nuc900_spi_flash_partitions[] = {
 };
 
 static struct flash_platform_data nuc900_spi_flash_data = {
-	.name = "m25p80",
 	.parts =  nuc900_spi_flash_partitions,
 	.nr_parts = ARRAY_SIZE(nuc900_spi_flash_partitions),
 	.type = "w25x16",
-- 
1.8.4.5

             reply	other threads:[~2014-09-29 12:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-29 12:30 Rafał Miłecki [this message]
2014-09-30  2:21 ` [PATCH] ARM: don't set unused name in struct flash_platform_data Simon Horman
2014-10-22  5:53 ` Brian Norris
2014-10-22  6:03   ` Rafał Miłecki
2014-10-22  6:10     ` Brian Norris
2014-10-22  6:11     ` Rafał Miłecki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1411993853-6309-1-git-send-email-zajec5@gmail.com \
    --to=zajec5@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).