File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ static int bcm2835aux_serial_probe(struct platform_device *pdev)
41
41
up .port .iotype = UPIO_MEM ;
42
42
up .port .fifosize = 8 ;
43
43
up .port .flags = UPF_SHARE_IRQ | UPF_FIXED_PORT | UPF_FIXED_TYPE |
44
- UPF_SKIP_TEST ;
44
+ UPF_SKIP_TEST | UPF_IOREMAP ;
45
45
46
46
/* get the clock - this also enables the HW */
47
47
data -> clk = devm_clk_get (& pdev -> dev , NULL );
@@ -64,10 +64,8 @@ static int bcm2835aux_serial_probe(struct platform_device *pdev)
64
64
dev_err (& pdev -> dev , "memory resource not found" );
65
65
return - EINVAL ;
66
66
}
67
- up .port .membase = devm_ioremap_resource (& pdev -> dev , res );
68
- ret = PTR_ERR_OR_ZERO (up .port .membase );
69
- if (ret )
70
- return ret ;
67
+ up .port .mapbase = res -> start ;
68
+ up .port .mapsize = resource_size (res );
71
69
72
70
/* Check for a fixed line number */
73
71
ret = of_alias_get_id (pdev -> dev .of_node , "serial" );
You can’t perform that action at this time.
0 commit comments