From: Sudip Mukherjee Date: Thu, 7 May 2015 11:12:21 +0000 (+0530) Subject: staging: dgap: use remove function X-Git-Tag: omap-for-v4.3/legacy-v2-signed~121^2~635 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1397e2fd065a87f623263e23028f3b252917121b;p=pandora-kernel.git staging: dgap: use remove function the remove callback will be called in two cases, 1) if the driver is removed and 2) if the pci device is removed. as of now all the board cleanups were being done in the module unload section so if the module is unloaded everything works. But if the pci device is removed then the loaded driver will be left in an inconsistent state. So moved the cleanups in the remove callback and since there was no reference of dgap_driver in remove_one(), so had to define the pci_driver in the function. Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed