mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
USB: OHCI: nxp: fix code warnings
This patch will fix the checkpatch.pl following warnings:
WARNING: Missing a blank line after declarations
WARNING: braces {} are not necessary for single statement blocks
Signed-off-by: Manjunath Goudar <[email protected]>
Acked-by: Vladimir Zapolskiy <[email protected]>
Cc: Sylvain Lemieux <[email protected]>
Cc: Alan Stern <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
890f670756
commit
5c5a94a50f
1 changed files with 3 additions and 2 deletions
|
|
@ -125,6 +125,7 @@ static inline void isp1301_vbus_off(void)
|
|||
static void ohci_nxp_start_hc(void)
|
||||
{
|
||||
unsigned long tmp = __raw_readl(USB_OTG_STAT_CONTROL) | HOST_EN;
|
||||
|
||||
__raw_writel(tmp, USB_OTG_STAT_CONTROL);
|
||||
isp1301_vbus_on();
|
||||
}
|
||||
|
|
@ -132,6 +133,7 @@ static void ohci_nxp_start_hc(void)
|
|||
static void ohci_nxp_stop_hc(void)
|
||||
{
|
||||
unsigned long tmp;
|
||||
|
||||
isp1301_vbus_off();
|
||||
tmp = __raw_readl(USB_OTG_STAT_CONTROL) & ~HOST_EN;
|
||||
__raw_writel(tmp, USB_OTG_STAT_CONTROL);
|
||||
|
|
@ -153,9 +155,8 @@ static int ohci_hcd_nxp_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
isp1301_i2c_client = isp1301_get_client(isp1301_node);
|
||||
if (!isp1301_i2c_client) {
|
||||
if (!isp1301_i2c_client)
|
||||
return -EPROBE_DEFER;
|
||||
}
|
||||
|
||||
ret = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
|
||||
if (ret)
|
||||
|
|
|
|||
Loading…
Reference in a new issue