summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/gadget/command.c4
-rw-r--r--drivers/usb/gadget/f_fastboot.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/gadget/command.c b/drivers/usb/gadget/command.c
index 543b99e..f3254f8 100644
--- a/drivers/usb/gadget/command.c
+++ b/drivers/usb/gadget/command.c
@@ -73,7 +73,7 @@ int bcb_read_command(char *command)
char *addr_str;
char *nand_str;
ulong misc_info_size;
- struct mtd_info *nand = &nand_info[0];
+ struct mtd_info *nand = nand_info[0];
if (command == NULL)
return -1;
memset(read_cmd, 0, 128);
@@ -97,7 +97,7 @@ int bcb_write_command(char *command)
char *addr_str;
char *nand_str;
ulong misc_info_size;
- struct mtd_info *nand = &nand_info[0];
+ struct mtd_info *nand = nand_info[0];
if (command == NULL)
return -1;
memset(cmd, 0, 128);
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index 6021f2d..f7ff7bd 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -441,7 +441,7 @@ static int write_to_ptn(struct fastboot_ptentry *ptn)
unsigned long off;
unsigned int ok_start;
- nand = &nand_info[nand_curr_device];
+ nand = nand_info[nand_curr_device];
printf("\nDevice %d bad blocks:\n",
nand_curr_device);
@@ -1262,7 +1262,7 @@ static void parameters_setup(void)
{
interface.nand_block_size = 0;
#if defined(CONFIG_FASTBOOT_STORAGE_NAND)
- struct mtd_info *nand = &nand_info[0];
+ struct mtd_info *nand = nand_info[0];
if (nand)
interface.nand_block_size = nand->writesize;
#endif