diff mbox

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

Message ID 20170509213902.37939-6-cbostic@linux.vnet.ibm.com
State Accepted, archived
Headers show

Commit Message

Christopher Bostic May 9, 2017, 9:39 p.m. UTC
Unscan all devices whatn a master unregisters - ensures full
cleanup.

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

Comments

Joel Stanley May 11, 2017, 12:06 p.m. UTC | #1
On Wed, May 10, 2017 at 7:09 AM, Christopher Bostic
<cbostic@linux.vnet.ibm.com> wrote:
> Unscan all devices whatn a master unregisters - ensures full
> cleanup.
>
> Signed-off-by: Christopher Bostic <cbostic@linux.vnet.ibm.com>

Applied to dev-4.10.

Cheers,

Joel
diff mbox

Patch

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