aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-06-24 18:13:39 +0000
committerJohn Crispin <john@openwrt.org>2014-06-24 18:13:39 +0000
commit69e02dadf15ad8ee1c14d880ecb81556476fa4eb (patch)
tree732312ecc4deb55c5707f5c5e3678f15d17d7aca /target/linux/atheros
parentcef87d67f969e7f151cd1e4817476d2d08ecdd51 (diff)
downloadupstream-69e02dadf15ad8ee1c14d880ecb81556476fa4eb.tar.gz
upstream-69e02dadf15ad8ee1c14d880ecb81556476fa4eb.tar.bz2
upstream-69e02dadf15ad8ee1c14d880ecb81556476fa4eb.zip
atheros[ar2315-spiflash]: make local variables and functions static
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41323
Diffstat (limited to 'target/linux/atheros')
-rw-r--r--target/linux/atheros/patches-3.10/120-spiflash.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/target/linux/atheros/patches-3.10/120-spiflash.patch b/target/linux/atheros/patches-3.10/120-spiflash.patch
index 55bcc0ed4a..580a5038dc 100644
--- a/target/linux/atheros/patches-3.10/120-spiflash.patch
+++ b/target/linux/atheros/patches-3.10/120-spiflash.patch
@@ -87,7 +87,7 @@
+ u32 sector_size;
+};
+
-+const struct flashconfig flashconfig_tbl[] = {
++static const struct flashconfig flashconfig_tbl[] = {
+ [FLASH_NONE] = { 0, 0, 0},
+ [FLASH_1MB] = { STM_1MB_BYTE_COUNT, STM_1MB_SECTOR_COUNT,
+ STM_1MB_SECTOR_SIZE},
@@ -122,7 +122,7 @@
+ __s8 rx_cnt;
+};
+
-+const struct opcodes stm_opcodes[] = {
++static const struct opcodes stm_opcodes[] = {
+ [SPI_WRITE_ENABLE] = {STM_OP_WR_ENABLE, 1, 0},
+ [SPI_WRITE_DISABLE] = {STM_OP_WR_DISABLE, 1, 0},
+ [SPI_RD_STATUS] = {STM_OP_RD_STATUS, 1, 1},
@@ -535,19 +535,19 @@
+ return 0;
+}
+
-+struct platform_driver spiflash_driver = {
++static struct platform_driver spiflash_driver = {
+ .driver.name = "spiflash",
+ .probe = spiflash_probe,
+ .remove = spiflash_remove,
+};
+
-+int __init
++static int __init
+spiflash_init(void)
+{
+ return platform_driver_register(&spiflash_driver);
+}
+
-+void __exit
++static void __exit
+spiflash_exit(void)
+{
+ return platform_driver_unregister(&spiflash_driver);