瀏覽代碼

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 <levex@linux.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Levente Kurusa 11 年之前
父節點
當前提交
08f336b808
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/bcma/main.c

+ 1 - 0
drivers/bcma/main.c

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