File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -16,30 +16,27 @@ static unsigned int probe_rsa_count;
16
16
17
17
static int rsa8250_request_resource (struct uart_8250_port * up )
18
18
{
19
- unsigned long start = UART_RSA_BASE << up -> port .regshift ;
20
- unsigned int size = 8 << up -> port .regshift ;
21
19
struct uart_port * port = & up -> port ;
22
- int ret = - EINVAL ;
20
+ unsigned long start = UART_RSA_BASE << port -> regshift ;
21
+ unsigned int size = 8 << port -> regshift ;
23
22
24
23
switch (port -> iotype ) {
25
24
case UPIO_HUB6 :
26
25
case UPIO_PORT :
27
26
start += port -> iobase ;
28
- if (request_region (start , size , "serial-rsa" ))
29
- ret = 0 ;
30
- else
31
- ret = - EBUSY ;
32
- break ;
27
+ if (! request_region (start , size , "serial-rsa" ))
28
+ return - EBUSY ;
29
+ return 0 ;
30
+ default :
31
+ return - EINVAL ;
33
32
}
34
-
35
- return ret ;
36
33
}
37
34
38
35
static void rsa8250_release_resource (struct uart_8250_port * up )
39
36
{
40
- unsigned long offset = UART_RSA_BASE << up -> port .regshift ;
41
- unsigned int size = 8 << up -> port .regshift ;
42
37
struct uart_port * port = & up -> port ;
38
+ unsigned long offset = UART_RSA_BASE << port -> regshift ;
39
+ unsigned int size = 8 << port -> regshift ;
43
40
44
41
switch (port -> iotype ) {
45
42
case UPIO_HUB6 :
You can’t perform that action at this time.
0 commit comments