staging: mt7621-pci: remove 'offset' with mem and io resource sizes
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Mon, 23 Nov 2020 09:36:32 +0000 (10:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Nov 2020 08:12:18 +0000 (09:12 +0100)
commitd7dcee38cbea6931a700bd42435bf403afee826a
tree5224cb450d263b93e5e1a75194823b9d91b5cf83
parent0438fb09828eda30076a3e14b62f17aed95c364b
staging: mt7621-pci: remove 'offset' with mem and io resource sizes

Offset contains resources size for both io and memory resources.
Those fields are directly initialized to zero and set up using
'pci_add_resource_offset' function. Instead of doing that remove
them and use directly function 'pci_add_resource' where zero is
passed directly to its internal call to 'pci_add_resource_offset'.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20201123093637.8300-3-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pci/pci-mt7621.c