Skip to content

Commit

Permalink
bcma: add missing put_device call
Browse files Browse the repository at this point in the history
This is required so that we give up the last reference to the device.

Signed-off-by: Levente Kurusa <levex@linux.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Levente Kurusa authored and John W. Linville committed Dec 19, 2013
1 parent d7df7a5 commit 08f336b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/bcma/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 08f336b

Please sign in to comment.