9
0
Fork 0

ARM: OMAP: Add missing include

Include mach/generic.h where omap_set_bootmmc_devname is declared.
Change the argument of omap_set_bootmmc_devname to const char *
to fix the resulting conflicting prototypes.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-09-25 12:30:18 +02:00
parent f043520c5a
commit 9d88abf958
1 changed files with 5 additions and 3 deletions

View File

@ -20,10 +20,11 @@
#include <fs.h>
#include <malloc.h>
#include <linux/stat.h>
#include <mach/generic.h>
static char *omap_bootmmc_dev;
const static char *omap_bootmmc_dev;
void omap_set_bootmmc_devname(char *devname)
void omap_set_bootmmc_devname(const char *devname)
{
omap_bootmmc_dev = devname;
}
@ -37,7 +38,8 @@ const char *omap_get_bootmmc_devname(void)
static int omap_env_init(void)
{
struct stat s;
char *diskdev, *partname;
char *partname;
const char *diskdev;
int ret;
if (bootsource_get() != BOOTSOURCE_MMC)