Re: [PATCH 3/5] USB: bcma: use devm_kzalloc

2015-06-01 Thread Rafał Miłecki
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)) { > -

[PATCH 3/5] USB: bcma: use devm_kzalloc

2015-06-01 Thread Hauke Mehrtens
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