bcma: add missing put_device call

This is required so that we give up the last reference to the device.

Signed-off-by: Levente Kurusa <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
Levente Kurusa 2013-12-19 16:06:52 +01:00 • committed by John W. Linville
commit 08f336b808

View file

@ -176,6 +176,7 @@ static int bcma_register_cores(struct bcma_bus *bus)
bcma_err(bus,
"Could not register dev for core 0x%03X\n",
core->id.id);
put_device(&core->dev);
continue;
}
core->dev_registered = true;