gadget: at91: Fix uninitialized variable
Variable udc is used unitialized for DBG(xxx). Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
7c1a6a3c91
commit
303c3d1e24
|
@ -1417,7 +1417,7 @@ static struct poller_struct poller = {
|
|||
|
||||
static int __init at91udc_probe(struct device_d *dev)
|
||||
{
|
||||
struct at91_udc *udc;
|
||||
struct at91_udc *udc = &controller;
|
||||
int retval;
|
||||
|
||||
if (!dev->platform_data) {
|
||||
|
@ -1427,7 +1427,6 @@ static int __init at91udc_probe(struct device_d *dev)
|
|||
}
|
||||
|
||||
/* init software state */
|
||||
udc = &controller;
|
||||
udc->dev = dev;
|
||||
udc->board = *(struct at91_udc_data *) dev->platform_data;
|
||||
udc->enabled = 0;
|
||||
|
|
Loading…
Reference in New Issue