summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/os/common.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-03-03 13:14:59 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-03-06 07:42:23 +0100
commit7cb9af239bee8ce5015dbec02c19b024ea672ce4 (patch)
treed23d8b78b76d783130ba14652cceaf2874a85cbd /arch/sandbox/os/common.c
parente146c5f947a27a7c703fba707d86876b7f284ca7 (diff)
downloadbarebox-7cb9af239bee8ce5015dbec02c19b024ea672ce4.tar.gz
barebox-7cb9af239bee8ce5015dbec02c19b024ea672ce4.tar.xz
sandbox: hostfile: completely switch to OF based probing
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox/os/common.c')
-rw-r--r--arch/sandbox/os/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sandbox/os/common.c b/arch/sandbox/os/common.c
index 7aa0f5d3f2..d627391890 100644
--- a/arch/sandbox/os/common.c
+++ b/arch/sandbox/os/common.c
@@ -208,13 +208,13 @@ extern void mem_malloc_init(void *start, void *end);
static int add_image(char *str, char *devname_template, int *devname_number)
{
+ struct hf_info *hf = malloc(sizeof(struct hf_info));
char *filename, *devname;
char tmp[16];
int readonly = 0;
struct stat s;
char *opt;
int fd, ret;
- struct hf_platform_data *hf = malloc(sizeof(struct hf_platform_data));
if (!hf)
return -1;