mirror of
https://github.com/torvalds/linux.git
synced 2024-09-28 19:03:08 +00:00
tty: serial: uartlite: allow 64 bit address
The base address of uartlite registers could be 64 bit address which is from
device resource. When ulite_probe() calls ulite_assign(), this 64 bit
address is casted to 32-bit. The fix is to replace "u32" type with
"phys_addr_t" type for the base address in ulite_assign() argument list.
Fixes: 8fa7b61006
("[POWERPC] Uartlite: Separate the bus binding from the driver proper")
Signed-off-by: Lizhi Hou <lizhi.hou@xilinx.com>
Link: https://lore.kernel.org/r/20211129202302.1319033-1-lizhi.hou@xilinx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ffccc78a58
commit
3672fb6515
|
@ -626,7 +626,7 @@ static struct uart_driver ulite_uart_driver = {
|
||||||
*
|
*
|
||||||
* Returns: 0 on success, <0 otherwise
|
* Returns: 0 on success, <0 otherwise
|
||||||
*/
|
*/
|
||||||
static int ulite_assign(struct device *dev, int id, u32 base, int irq,
|
static int ulite_assign(struct device *dev, int id, phys_addr_t base, int irq,
|
||||||
struct uartlite_data *pdata)
|
struct uartlite_data *pdata)
|
||||||
{
|
{
|
||||||
struct uart_port *port;
|
struct uart_port *port;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user