USB: OHCI: ohci-pxa27x: remove useless functions
A message that is not in the archive (sent off-list or not yet received): [email protected]
Alan Stern
Acked-byQuoted 25 lines · On Thu, 1 Dec 2016 [email protected] wrote:
From: Manjunath Goudar <[email protected]>
The
ohci_hcd_pxa27x_drv_probefunction is not doing anything other than callingusb_hcd_pxa27x_probefunction soohci_hcd_pxa27x_drv_probefunction is useless that is why removedohci_hcd_pxa27x_drv_probefunction and renamedusb_hcd_pxa27x_probefunction toohci_hcd_pxa27x_drv_probefor proper naming.The
ohci_hcd_pxa27x_removefunction is also not doing anything other than callingusb_hcd_pxa27x_removethat is why removedohci_hcd_pxa27x_removefunction and renamedusb_hcd_pxa27x_removetoohci_hcd_pxa27x_removefor proper naming.Signed-off-by Manjunath Goudar <[email protected]>Cc Alan Stern <[email protected]>Cc Greg Kroah-Hartman <[email protected]>---
Changelog v1 -> v2:
Removed warnings and errors of checkpatch.pl script.
Replaced unuseful with useless in patch commit message for proper meaning. Removedusb_disabled()fromohci_hcd_pxa27x_drv_probefunction because it is already existing inohci_pxa27x_initfunction
Quoted 5 lines
Changelog v2 -> v3:
Removed checkpatch.pl warnings and errors cleanup code which is not related to this patch.drivers/usb/host/ohci-pxa27x.c | 38 ++++++++++++-------------------------- 1 file changed, 12 insertions(+), 26 deletions(-)
Just one little thing...
Quoted 23 lines
drivers/usb/host/ohci-pxa27x.c +2
-2@@ -404,7 +404,7 @@ static int ohci_pxa_of_init(struct platform_device *pdev)/** -* usb_hcd_pxa27x_probe - initialize pxa27x-based HCDs +* ohci_hcd_pxa27x_probe - initialize pxa27x-based HCDs * Context: !in_interrupt() * * Allocates basic resources for this USB host controller, and @@ -412,7 +412,7 @@ static int ohci_pxa_of_init(struct platform_device *pdev)* through the hotplug entry's driver_data. * */ -int usb_hcd_pxa27x_probe (const struct hc_driver *driver,struct platform_device *pdev) +static int ohci_hcd_pxa27x_probe (struct platform_device *pdev) {int retval, irq;struct usb_hcd *hcd;
drivers/usb/host/ohci-pxa27x.c int usb_hcd_pxa27x_probe (const struct hc_driver *driver, struct platform_device · line 427
Quoted 5 lines
drivers/usb/host/ohci-pxa27x.c +2
-0@@ -423,6 +423,8 @@ int usb_hcd_pxa27x_probe (const struct hc_driver *driver, struct platform_devicestruct clk *usb_clk;unsigned int i; +pr_debug ("In ohci_hcd_pxa27x_drv_probe" ); +
Don't insert this pr_debug line. After fixing that up, you can add:
Alan Stern