[linux,dev-4.10] drivers/fsi: Unscan on master unregister
diff mbox

Message ID 20170503204841.89412-1-cbostic@linux.vnet.ibm.com
State Superseded
Headers show

Commit Message

Christopher Bostic May 3, 2017, 8:48 p.m. UTC
Need to unscan all devices when a master unregisters to ensure
full cleanup.

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

Patch
diff mbox

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);