mtd: fix physmap.h warnings
authorRandy Dunlap <randy.dunlap@oracle.com>
Mon, 23 May 2011 18:37:09 +0000 (11:37 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 1 Jun 2011 10:36:49 +0000 (11:36 +0100)
Fix build warnings in physmap.h:

include/linux/mtd/physmap.h:25: warning: 'struct platform_device' declared inside parameter list
include/linux/mtd/physmap.h:25: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/mtd/physmap.h:26: warning: 'struct platform_device' declared inside parameter list
include/linux/mtd/physmap.h:27: warning: 'struct platform_device' declared inside parameter list

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

include/linux/mtd/physmap.h

index d40bfa1..e5f21d2 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/mtd/partitions.h>
 
 struct map_info;
+struct platform_device;
 
 struct physmap_flash_data {
        unsigned int            width;