| .. | .. |
|---|
| 309 | 309 | case CS8: |
|---|
| 310 | 310 | default: |
|---|
| 311 | 311 | config |= UA_CONFIG_CHAR_LEN; |
|---|
| 312 | + termios->c_cflag &= ~CSIZE; |
|---|
| 313 | + termios->c_cflag |= CS8; |
|---|
| 312 | 314 | break; |
|---|
| 313 | 315 | } |
|---|
| 314 | 316 | |
|---|
| .. | .. |
|---|
| 471 | 473 | if (IS_ERR(uart_clk)) |
|---|
| 472 | 474 | return PTR_ERR(uart_clk); |
|---|
| 473 | 475 | |
|---|
| 474 | | - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
|---|
| 475 | | - dp->port.mapbase = res->start; |
|---|
| 476 | | - dp->port.membase = devm_ioremap_resource(&pdev->dev, res); |
|---|
| 476 | + dp->port.membase = devm_platform_get_and_ioremap_resource(pdev, 0, &res); |
|---|
| 477 | 477 | if (IS_ERR(dp->port.membase)) |
|---|
| 478 | 478 | return PTR_ERR(dp->port.membase); |
|---|
| 479 | + dp->port.mapbase = res->start; |
|---|
| 479 | 480 | |
|---|
| 480 | 481 | irq = platform_get_irq(pdev, 0); |
|---|
| 481 | 482 | if (irq < 0) |
|---|