mxser: pci, switch to managed resources
authorJiri Slaby <jslaby@suse.cz>
Fri, 18 Jun 2021 06:14:51 +0000 (08:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jun 2021 11:10:01 +0000 (13:10 +0200)
commitdcb04e21bba349875c97467062a0d5cb06f7524d
treed346f8650108e0ec295a052e152ba280d3e95ae3
parentd450f0852fccccc4ae7ec4103e146ae1b61a6fef
mxser: pci, switch to managed resources

Switch to managed resources for PCI using pcim_enable_device.
Regions and device disabling is now taken care of by the core and we
need not unwind. Neither in ->probe, nor in ->remove. That simplifies
the code.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210618061516.662-46-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/mxser.c