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

Christopher Bostic cbostic at linux.vnet.ibm.com
Wed May 10 07:39:00 AEST 2017


Unscan all devices whatn a master unregisters - ensures 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 d6ea95b..809a3c4 100644
--- a/drivers/fsi/fsi-core.c
+++ b/drivers/fsi/fsi-core.c
@@ -965,6 +965,7 @@ void fsi_master_unregister(struct fsi_master *master)
 		master_ipoll = NULL;
 	}
 
+	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