hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/mfd/omap-usb-host.c
....@@ -1,21 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /**
23 * omap-usb-host.c - The USBHS core driver for OMAP EHCI & OHCI
34 *
4
- * Copyright (C) 2011-2013 Texas Instruments Incorporated - http://www.ti.com
5
+ * Copyright (C) 2011-2013 Texas Instruments Incorporated - https://www.ti.com
56 * Author: Keshava Munegowda <keshava_mgowda@ti.com>
67 * Author: Roger Quadros <rogerq@ti.com>
7
- *
8
- * This program is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 of
10
- * the License as published by the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License
18
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
198 */
209 #include <linux/kernel.h>
2110 #include <linux/module.h>
....@@ -131,7 +120,7 @@
131120
132121 /*-------------------------------------------------------------------------*/
133122
134
-/**
123
+/*
135124 * Map 'enum usbhs_omap_port_mode' found in <linux/platform_data/usb-omap.h>
136125 * to the device tree binding portN-mode found in
137126 * 'Documentation/devicetree/bindings/mfd/omap-usb-host.txt'
....@@ -319,7 +308,7 @@
319308 i, r);
320309 }
321310 }
322
- /* Fall through as HSIC mode needs utmi_clk */
311
+ fallthrough; /* as HSIC mode needs utmi_clk */
323312
324313 case OMAP_EHCI_PORT_MODE_TLL:
325314 if (!IS_ERR(omap->utmi_clk[i])) {
....@@ -355,7 +344,7 @@
355344
356345 if (!IS_ERR(omap->hsic480m_clk[i]))
357346 clk_disable_unprepare(omap->hsic480m_clk[i]);
358
- /* Fall through as utmi_clks were used in HSIC mode */
347
+ fallthrough; /* as utmi_clks were used in HSIC mode */
359348
360349 case OMAP_EHCI_PORT_MODE_TLL:
361350 if (!IS_ERR(omap->utmi_clk[i]))
....@@ -537,6 +526,8 @@
537526 * usbhs_omap_probe - initialize TI-based HCDs
538527 *
539528 * Allocates basic resources for this USB host controller.
529
+ *
530
+ * @pdev: Pointer to this device's platform device structure
540531 */
541532 static int usbhs_omap_probe(struct platform_device *pdev)
542533 {
....@@ -851,7 +842,7 @@
851842
852843 static struct platform_driver usbhs_omap_driver = {
853844 .driver = {
854
- .name = (char *)usbhs_driver_name,
845
+ .name = usbhs_driver_name,
855846 .pm = &usbhsomap_dev_pm_ops,
856847 .of_match_table = usbhs_omap_dt_ids,
857848 },