]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mei: nfc: clean nfc internal struct on host exit
authorTomas Winkler <tomas.winkler@intel.com>
Wed, 5 Nov 2014 16:18:52 +0000 (18:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Nov 2014 17:59:08 +0000 (09:59 -0800)
commita176c24dc9a82b3304a31233bfc37e97c42de09b
tree6c9949b6a18ee6c3b6508a59c0c93c63d2933f84
parent148b1fda69a816cae613f7a74b1423d65fa1621f
mei: nfc: clean nfc internal struct on host exit

NFC internal structure cleaning was dropped by commit

commit 487056932d372cc4f6c636f21a928d6667b151d7
Author: Tomas Winkler <tomas.winkler@intel.com>
Date:   Mon Feb 17 15:13:19 2014 +0200

    mei: Remove all bus devices from the mei_dev list when stopping the MEI

    When stopping the MEI, we should remove and potentially unregister
    all bus devices queued on the mei_dev linked list.

We allocate nfc_dev and free it across the reset
so we do not keep it in dirty state

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/bus.c
drivers/misc/mei/mei_dev.h
drivers/misc/mei/nfc.c