staging: rts5208: Replace pci_enable_device with pcim_enable_device
commit80f10bcc7f8c0ca4bc0ef61bdc001ec11d5991f9
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Fri, 11 Mar 2016 20:36:24 +0000 (12 02:06 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (11 22:09 -0800)
tree06bdf1b1157b22894631b40863cc3735741f6856
parent56c4a79958ebe7fc476f03a31589863813e4dd89
staging: rts5208: Replace pci_enable_device with pcim_enable_device

Devm_ functions allocate memory that is automatically freed when
a driver detaches.

Replace pci_enable_device with pcim_enable_device. Remove unnecessary
pci_disable_device and pci_release_regions from probe and remove
functions in rts5208 driver since pcim_enable_device contains a call
to pcim_release which contains calls to both pci_disable_device and
pci_release_regions.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/rtsx.c