mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-12 01:20:14 +00:00
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: Jiri Slaby (SUSE) <jirislaby@kernel.org> Link: https://patch.msgid.link/20251119092457.826789-6-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9b2259633b
commit
f9066dac8f
@ -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, \
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user