Commit f9066dac authored by Jiri Slaby (SUSE)'s avatar Jiri Slaby (SUSE) Committed by Greg Kroah-Hartman
Browse files

serial: 8250: make share_irqs local to 8250_platform



share_irqs is used solely in 8250_platform. Make it local to that file.

Signed-off-by: default avatarJiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://patch.msgid.link/20251119092457.826789-6-jirislaby@kernel.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9b225963
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -98,14 +98,6 @@ struct serial8250_config {

extern unsigned int nr_uarts;

#ifdef CONFIG_SERIAL_8250_SHARE_IRQ
#define SERIAL8250_SHARE_IRQS 1
#else
#define SERIAL8250_SHARE_IRQS 0
#endif

extern unsigned int share_irqs;

#define SERIAL8250_PORT_FLAGS(_base, _irq, _flags)		\
	{							\
		.iobase		= _base,			\
+2 −2
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@
 * share_irqs:     Whether we pass IRQF_SHARED to request_irq().
 *                 This option is unsafe when used on edge-triggered interrupts.
 */
unsigned int share_irqs = SERIAL8250_SHARE_IRQS;
static bool share_irqs = IS_ENABLED(CONFIG_SERIAL_8250_SHARE_IRQ);

unsigned int nr_uarts = CONFIG_SERIAL_8250_RUNTIME_UARTS;

@@ -378,7 +378,7 @@ module_exit(serial8250_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Generic 8250/16x50 serial platform driver");

module_param_hw(share_irqs, uint, other, 0644);
module_param_hw(share_irqs, bool, other, 0644);
MODULE_PARM_DESC(share_irqs, "Share IRQs with other non-8250/16x50 devices (unsafe)");

module_param(nr_uarts, uint, 0644);