.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /** |
---|
2 | 3 | * omap-usb-host.c - The USBHS core driver for OMAP EHCI & OHCI |
---|
3 | 4 | * |
---|
4 | | - * Copyright (C) 2011-2013 Texas Instruments Incorporated - http://www.ti.com |
---|
| 5 | + * Copyright (C) 2011-2013 Texas Instruments Incorporated - https://www.ti.com |
---|
5 | 6 | * Author: Keshava Munegowda <keshava_mgowda@ti.com> |
---|
6 | 7 | * 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/>. |
---|
19 | 8 | */ |
---|
20 | 9 | #include <linux/kernel.h> |
---|
21 | 10 | #include <linux/module.h> |
---|
.. | .. |
---|
131 | 120 | |
---|
132 | 121 | /*-------------------------------------------------------------------------*/ |
---|
133 | 122 | |
---|
134 | | -/** |
---|
| 123 | +/* |
---|
135 | 124 | * Map 'enum usbhs_omap_port_mode' found in <linux/platform_data/usb-omap.h> |
---|
136 | 125 | * to the device tree binding portN-mode found in |
---|
137 | 126 | * 'Documentation/devicetree/bindings/mfd/omap-usb-host.txt' |
---|
.. | .. |
---|
319 | 308 | i, r); |
---|
320 | 309 | } |
---|
321 | 310 | } |
---|
322 | | - /* Fall through as HSIC mode needs utmi_clk */ |
---|
| 311 | + fallthrough; /* as HSIC mode needs utmi_clk */ |
---|
323 | 312 | |
---|
324 | 313 | case OMAP_EHCI_PORT_MODE_TLL: |
---|
325 | 314 | if (!IS_ERR(omap->utmi_clk[i])) { |
---|
.. | .. |
---|
355 | 344 | |
---|
356 | 345 | if (!IS_ERR(omap->hsic480m_clk[i])) |
---|
357 | 346 | 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 */ |
---|
359 | 348 | |
---|
360 | 349 | case OMAP_EHCI_PORT_MODE_TLL: |
---|
361 | 350 | if (!IS_ERR(omap->utmi_clk[i])) |
---|
.. | .. |
---|
537 | 526 | * usbhs_omap_probe - initialize TI-based HCDs |
---|
538 | 527 | * |
---|
539 | 528 | * Allocates basic resources for this USB host controller. |
---|
| 529 | + * |
---|
| 530 | + * @pdev: Pointer to this device's platform device structure |
---|
540 | 531 | */ |
---|
541 | 532 | static int usbhs_omap_probe(struct platform_device *pdev) |
---|
542 | 533 | { |
---|
.. | .. |
---|
851 | 842 | |
---|
852 | 843 | static struct platform_driver usbhs_omap_driver = { |
---|
853 | 844 | .driver = { |
---|
854 | | - .name = (char *)usbhs_driver_name, |
---|
| 845 | + .name = usbhs_driver_name, |
---|
855 | 846 | .pm = &usbhsomap_dev_pm_ops, |
---|
856 | 847 | .of_match_table = usbhs_omap_dt_ids, |
---|
857 | 848 | }, |
---|