hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/pinctrl/qcom/pinctrl-qdf2xxx.c
....@@ -1,14 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 and
6
- * only version 2 as published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- * GNU General Public License for more details.
124 *
135 * GPIO and pin control functions on this SOC are handled by the "TLMM"
146 * device. The driver which controls this device is pinctrl-msm.c. Each
....@@ -60,7 +52,7 @@
6052 }
6153
6254 /* The number of GPIOs in the approved list */
63
- ret = device_property_read_u8_array(&pdev->dev, "gpios", NULL, 0);
55
+ ret = device_property_count_u8(&pdev->dev, "gpios");
6456 if (ret < 0) {
6557 dev_err(&pdev->dev, "missing 'gpios' property\n");
6658 return ret;