.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/drivers/clocksource/acpi_pm.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
12 | 13 | * |
---|
13 | 14 | * Based on parts of linux/drivers/acpi/hardware/hwtimer.c, timer_pit.c, |
---|
14 | 15 | * timer_hpet.c, and on Arjan van de Ven's implementation for 2.4. |
---|
15 | | - * |
---|
16 | | - * This file is licensed under the GPL v2. |
---|
17 | 16 | */ |
---|
18 | 17 | |
---|
19 | 18 | #include <linux/acpi_pmtmr.h> |
---|
.. | .. |
---|
230 | 229 | int ret; |
---|
231 | 230 | |
---|
232 | 231 | ret = kstrtouint(arg, 16, &base); |
---|
233 | | - if (ret) |
---|
234 | | - return ret; |
---|
| 232 | + if (ret) { |
---|
| 233 | + pr_warn("PMTMR: invalid 'pmtmr=' value: '%s'\n", arg); |
---|
| 234 | + return 1; |
---|
| 235 | + } |
---|
235 | 236 | |
---|
236 | 237 | pr_info("PMTMR IOPort override: 0x%04x -> 0x%04x\n", pmtmr_ioport, |
---|
237 | 238 | base); |
---|