File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -74,10 +74,10 @@ void __init acpi_watchdog_init(void)
74
74
res .start = gas -> address ;
75
75
if (gas -> space_id == ACPI_ADR_SPACE_SYSTEM_MEMORY ) {
76
76
res .flags = IORESOURCE_MEM ;
77
- res .end = res .start + ALIGN (gas -> access_width , 4 );
77
+ res .end = res .start + ALIGN (gas -> access_width , 4 ) - 1 ;
78
78
} else if (gas -> space_id == ACPI_ADR_SPACE_SYSTEM_IO ) {
79
79
res .flags = IORESOURCE_IO ;
80
- res .end = res .start + gas -> access_width ;
80
+ res .end = res .start + gas -> access_width - 1 ;
81
81
} else {
82
82
pr_warn ("Unsupported address space: %u\n" ,
83
83
gas -> space_id );
Original file line number Diff line number Diff line change @@ -392,7 +392,7 @@ static int wdat_wdt_probe(struct platform_device *pdev)
392
392
393
393
memset (& r , 0 , sizeof (r ));
394
394
r .start = gas -> address ;
395
- r .end = r .start + gas -> access_width ;
395
+ r .end = r .start + gas -> access_width - 1 ;
396
396
if (gas -> space_id == ACPI_ADR_SPACE_SYSTEM_MEMORY ) {
397
397
r .flags = IORESOURCE_MEM ;
398
398
} else if (gas -> space_id == ACPI_ADR_SPACE_SYSTEM_IO ) {
You can’t perform that action at this time.
0 commit comments