hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/clocksource/acpi_pm.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/drivers/clocksource/acpi_pm.c
34 *
....@@ -12,8 +13,6 @@
1213 *
1314 * Based on parts of linux/drivers/acpi/hardware/hwtimer.c, timer_pit.c,
1415 * timer_hpet.c, and on Arjan van de Ven's implementation for 2.4.
15
- *
16
- * This file is licensed under the GPL v2.
1716 */
1817
1918 #include <linux/acpi_pmtmr.h>
....@@ -230,8 +229,10 @@
230229 int ret;
231230
232231 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
+ }
235236
236237 pr_info("PMTMR IOPort override: 0x%04x -> 0x%04x\n", pmtmr_ioport,
237238 base);