Skip to content

Commit 83c3518

Browse files
tmlindgregkh
authored andcommitted
serial: core: Controller id cannot be negative
The controller id cannot be negative. Let's fix the ctrl_id in preparation for adding port_id to fix the device name. Fixes: 84a9582 ("serial: core: Start managing serial controllers to enable runtime PM") Reported-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Tony Lindgren <tony@atomide.com> Link: https://lore.kernel.org/r/20230725054216.45696-2-tony@atomide.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 2820698 commit 83c3518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/serial_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ struct uart_port {
459459
struct serial_rs485 *rs485);
460460
int (*iso7816_config)(struct uart_port *,
461461
struct serial_iso7816 *iso7816);
462-
int ctrl_id; /* optional serial core controller id */
462+
unsigned int ctrl_id; /* optional serial core controller id */
463463
unsigned int irq; /* irq number */
464464
unsigned long irqflags; /* irq flags */
465465
unsigned int uartclk; /* base uart clock */

0 commit comments

Comments
 (0)