diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-05-07 16:42:21 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-10 15:12:09 +0200 |
commit | 1397e2fd065a87f623263e23028f3b252917121b (patch) | |
tree | a5689958561586ad6853c1fbfa91d39aea2e33fd /crypto | |
parent | d1c9f3efc47f48bc93106b6bf3fd43f9915da46e (diff) | |
download | blackbird-op-linux-1397e2fd065a87f623263e23028f3b252917121b.tar.gz blackbird-op-linux-1397e2fd065a87f623263e23028f3b252917121b.zip |
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 <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions