hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/mfd/omap-usb-tll.c
....@@ -1,21 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /**
23 * omap-usb-tll.c - The USB TLL driver for OMAP EHCI & OHCI
34 *
4
- * Copyright (C) 2012-2013 Texas Instruments Incorporated - http://www.ti.com
5
+ * Copyright (C) 2012-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>
....@@ -110,7 +99,7 @@
11099 struct usbtll_omap {
111100 void __iomem *base;
112101 int nch; /* num. of channels */
113
- struct clk *ch_clk[0]; /* must be the last member */
102
+ struct clk *ch_clk[]; /* must be the last member */
114103 };
115104
116105 /*-------------------------------------------------------------------------*/
....@@ -210,6 +199,8 @@
210199 * usbtll_omap_probe - initialize TI-based HCDs
211200 *
212201 * Allocates basic resources for this USB host controller.
202
+ *
203
+ * @pdev: Pointer to this device's platform device structure
213204 */
214205 static int usbtll_omap_probe(struct platform_device *pdev)
215206 {
....@@ -315,7 +306,7 @@
315306
316307 static struct platform_driver usbtll_omap_driver = {
317308 .driver = {
318
- .name = (char *)usbtll_driver_name,
309
+ .name = usbtll_driver_name,
319310 .of_match_table = usbtll_omap_dt_ids,
320311 },
321312 .probe = usbtll_omap_probe,
....@@ -459,7 +450,6 @@
459450
460451 MODULE_AUTHOR("Keshava Munegowda <keshava_mgowda@ti.com>");
461452 MODULE_AUTHOR("Roger Quadros <rogerq@ti.com>");
462
-MODULE_ALIAS("platform:" USBHS_DRIVER_NAME);
463453 MODULE_LICENSE("GPL v2");
464454 MODULE_DESCRIPTION("usb tll driver for TI OMAP EHCI and OHCI controllers");
465455