parport: do not check portlist when using device-model
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Wed, 16 Oct 2019 14:45:38 +0000 (15:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Nov 2019 11:09:48 +0000 (19:09 +0800)
commite962cd9cf9cfb1f5db6bbad6a6470e5ccf56e290
tree6b37624adfdbfb80e7659ebb32160117a2fc4cfd
parentc059d579961d62c1a675cb89ef799902e6bce815
parport: do not check portlist when using device-model

We do not need to maintain a list of ports when we are using the
device-model. The base layer is going to maintain the list for us and
we can get the list of ports just using bus_for_each_dev().

Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Link: https://lore.kernel.org/r/20191016144540.18810-2-sudipm.mukherjee@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/parport/share.c