]> git.baikalelectronics.ru Git - kernel.git/commit
staging: sm750fb: Use pcim_enable_device()
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Sun, 28 Feb 2016 15:52:00 +0000 (21:22 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
commit7b11998c88f9854610d95357a60cfc5bb65150f1
tree01911b0bcfe9910f48c933e10608c01e02d1cba3
parentd1e837bdfc9320c885b16fa98041acc5f37f30c8
staging: sm750fb: Use pcim_enable_device()

Devm_ functions allocate memory that is released when a driver
detaches.
Replace pci_enable_device with the managed pcim_enable_device
and remove corresponding pci_disable_device from probe and
suspend functions of a pci_dev.

Also, an unnecessary label has been removed by replacing it
with a direct return statement.

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