summaryrefslogtreecommitdiffstats
path: root/drivers/parport
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@orcam.me.uk>2023-01-08 22:56:56 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-20 13:12:00 +0100
commit96b45776995653a4971329c7f62ff6aa324027a2 (patch)
tree0615e9fd55b2100cff3a8db9d4da9146227cfe5d /drivers/parport
parentparport_pc: Set up mode and ECR masks for Oxford Semiconductor devices (diff)
downloadlinux-96b45776995653a4971329c7f62ff6aa324027a2.tar.xz
linux-96b45776995653a4971329c7f62ff6aa324027a2.zip
parport_pc: Limit the number of PCI BAR pairs to 2
Decrease the number of PCI BAR pair slots allocated for port subdrivers from 4 to 2 as none wants more than 2 at this time, reducing the memory footprint a little. No functional change. Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk> Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Link: https://lore.kernel.org/r/20230108215656.6433-7-sudipm.mukherjee@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/parport')
-rw-r--r--drivers/parport/parport_pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c
index 9b4fe9a2b549..88e125e36230 100644
--- a/drivers/parport/parport_pc.c
+++ b/drivers/parport/parport_pc.c
@@ -2657,7 +2657,7 @@ static struct parport_pc_pci {
int lo;
int hi;
/* -1 if not there, >6 for offset-method (max BAR is 6) */
- } addr[4];
+ } addr[2];
/* Bit field of parport modes to exclude. */
unsigned int mode_mask;