On 2 June 2015 at 00:13, Hauke Mehrtens wrote:
> @@ -239,10 +240,8 @@ static int bcma_hcd_probe(struct bcma_device *dev)
> ohci_addr = 0x18009000;
>
> usb_dev->ohci_dev = bcma_hcd_create_pdev(dev, true, ohci_addr);
> - if (IS_ERR(usb_dev->ohci_dev)) {
> -
Instead of manually handling the frees use devm. There was also a free
missing in the unregister call which is not needed with devm.
Signed-off-by: Hauke Mehrtens
---
drivers/usb/host/bcma-hcd.c | 11 ---
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/drivers/usb/host/bcma