]> git.baikalelectronics.ru Git - kernel.git/commit
serial: pch_uart: Fix signed-ness and casting of uartclk related fields
authorDarren Hart <dvhart@linux.intel.com>
Mon, 29 Jul 2013 22:15:07 +0000 (15:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Jul 2013 22:27:48 +0000 (15:27 -0700)
commit700ae80c51997d06bfe6082212cf91891bd5631c
treeb0e346bbe2bd9487658b468403ce189538baade2
parentd2c5a41c1e2c3208152fdf37342338c5912da64c
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: Darren Hart <dvhart@linux.intel.com>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/pch_uart.c