Commit 96b45776 authored by Maciej W. Rozycki's avatar Maciej W. Rozycki Committed by Greg Kroah-Hartman
Browse files

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: default avatarMaciej W. Rozycki <macro@orcam.me.uk>
Signed-off-by: default avatarSudip Mukherjee <sudipm.mukherjee@gmail.com>
Link: https://lore.kernel.org/r/20230108215656.6433-7-sudipm.mukherjee@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c087df8d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;