|
@@ -437,7 +437,7 @@ static int ravb_start(struct udevice *dev)
|
|
|
|
|
|
ret = ravb_reset(dev);
|
|
ret = ravb_reset(dev);
|
|
if (ret)
|
|
if (ret)
|
|
- goto err;
|
|
|
|
|
|
+ return ret;
|
|
|
|
|
|
ravb_base_desc_init(eth);
|
|
ravb_base_desc_init(eth);
|
|
ravb_tx_desc_init(eth);
|
|
ravb_tx_desc_init(eth);
|
|
@@ -445,16 +445,12 @@ static int ravb_start(struct udevice *dev)
|
|
|
|
|
|
ret = ravb_config(dev);
|
|
ret = ravb_config(dev);
|
|
if (ret)
|
|
if (ret)
|
|
- goto err;
|
|
|
|
|
|
+ return ret;
|
|
|
|
|
|
/* Setting the control will start the AVB-DMAC process. */
|
|
/* Setting the control will start the AVB-DMAC process. */
|
|
writel(CCC_OPC_OPERATION, eth->iobase + RAVB_REG_CCC);
|
|
writel(CCC_OPC_OPERATION, eth->iobase + RAVB_REG_CCC);
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
-
|
|
|
|
-err:
|
|
|
|
- clk_disable(ð->clk);
|
|
|
|
- return ret;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
static void ravb_stop(struct udevice *dev)
|
|
static void ravb_stop(struct udevice *dev)
|