[PATCH linux dev-4.10] drivers/fsi: Unscan on master unregister

Christopher Bostic cbostic at linux.vnet.ibm.com
Thu May 4 06:48:41 AEST 2017


Need to unscan all devices when a master unregisters to ensure
full cleanup.

Signed-off-by: Christopher Bostic <cbostic at linux.vnet.ibm.com>
---
 drivers/fsi/fsi-core.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/fsi/fsi-core.c b/drivers/fsi/fsi-core.c
index a6ed34f..3cca35c 100644
--- a/drivers/fsi/fsi-core.c
+++ b/drivers/fsi/fsi-core.c
@@ -829,6 +829,7 @@ void fsi_master_unregister(struct fsi_master *master)
 		master->idx = -1;
 	}
 
+	fsi_master_unscan(master);
 	device_unregister(&master->dev);
 }
 EXPORT_SYMBOL_GPL(fsi_master_unregister);
-- 
1.8.2.2



More information about the openbmc mailing list