Commit 2f1ba72d authored by Robert Baldyga's avatar Robert Baldyga Committed by Greg Kroah-Hartman

serial: samsung: prefer to use fifosize from driver data

If we have fifosize set in driver data we prefer to use it instead of default
fifosize value (which is always 16). If there is defined fifosize for particular
serial we prefer to use it, otherwise we use value from info, which is
common for all serials on given platform.
Signed-off-by: default avatarRobert Baldyga <r.baldyga@samsung.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ef4aca70
...@@ -1292,11 +1292,10 @@ static int s3c24xx_serial_probe(struct platform_device *pdev) ...@@ -1292,11 +1292,10 @@ static int s3c24xx_serial_probe(struct platform_device *pdev)
of_property_read_u32(np, of_property_read_u32(np,
"samsung,uart-fifosize", &ourport->port.fifosize); "samsung,uart-fifosize", &ourport->port.fifosize);
if (!ourport->port.fifosize) { if (ourport->drv_data->fifosize[index])
ourport->port.fifosize = (ourport->info->fifosize) ? ourport->port.fifosize = ourport->drv_data->fifosize[index];
ourport->info->fifosize : else if (ourport->info->fifosize)
ourport->drv_data->fifosize[index]; ourport->port.fifosize = ourport->info->fifosize;
}
probe_index++; probe_index++;
......
Markdown is supported
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