Skip to contentSkip to conversation

Fix compile-time warning

PATCH In review Sanjeev Premi 2 participants 2 messages Aug 19, 2008 – Aug 20, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compile-time warning

Fixes this warning:
CC arch/arm/mach-omap2/board-omap3evm-flash.o
arch/arm/mach-omap2/board-omap3evm-flash.c:61: warning: initialization from incompatible pointer type

---
 arch/arm/mach-omap2/board-omap3evm-flash.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-omap2/board-omap3evm-flash.c +3 -3
index 0aa8ef2..5f3663d 100644
@@ -23,7 +23,7 @@
 #include <mach/gpmc.h>
 #include <mach/nand.h>
 
-static int omap3evm_onenand_setup(void __iomem *);
+static int omap3evm_onenand_setup(void __iomem *, int freq);
 
 static struct mtd_partition omap3evm_onenand_partitions[] = {
 	{
@@ -76,8 +76,8 @@ static struct platform_device omap3evm_onenand_device = {
  *
  */
 
-static int omap3evm_onenand_setup(void __iomem *onenand_base)
-	{
+static int omap3evm_onenand_setup(void __iomem *onenand_base, int freq)
+{
 	/* nothing is required to be setup for onenand as of now */
 	return 0;
 }
Signature · 1 line
1.5.6
maintainer
#1 lore raw
Quoted 3 lines · Sanjeev Premi

Fixes this warning:
CC arch/arm/mach-omap2/board-omap3evm-flash.o
arch/arm/mach-omap2/board-omap3evm-flash.c:61: warning: initialization from incompatible pointer type

Pushing today.

Tony

Quoted 36 lines
---
 arch/arm/mach-omap2/board-omap3evm-flash.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-omap2/board-omap3evm-flash.c +3 -3
index 0aa8ef2..5f3663d 100644
@@ -23,7 +23,7 @@
 #include <mach/gpmc.h>
 #include <mach/nand.h>
 
-static int omap3evm_onenand_setup(void __iomem *);
+static int omap3evm_onenand_setup(void __iomem *, int freq);
 
 static struct mtd_partition omap3evm_onenand_partitions[] = {
 	{
@@ -76,8 +76,8 @@ static struct platform_device omap3evm_onenand_device = {
  *
  */
 
-static int omap3evm_onenand_setup(void __iomem *onenand_base)
-	{
+static int omap3evm_onenand_setup(void __iomem *onenand_base, int freq)
+{
 	/* nothing is required to be setup for onenand as of now */
 	return 0;
 }
Signature · 6 lines
1.5.6

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html