Skip to content
Commit e26439ce authored by Darren Hart's avatar Darren Hart Committed by Greg Kroah-Hartman
Browse files

serial: pch_uart: Fix signed-ness and casting of uartclk related fields



Storing one struct per known board would be overkill. Pre-cast the
driver_data pointer to an unsigned long to avoid the pointer to int
compiler warning:

drivers/tty/serial/pch_uart.c:431:10: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]

Unify the signed-ness of the baud and uartclk types throughout the
driver.

Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e4697193
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment