Skip to content

Commit

Permalink
usb: renesas_usbhs: make usbhs_write32() static
Browse files Browse the repository at this point in the history
The usbhs_write32 function is not used outside of the rcar3.c
file, so fix the following sparse warning by making it static:

drivers/usb/renesas_usbhs/rcar3.c:26:6: warning: symbol 'usbhs_write32' was not declared. Should it be static?

Signed-off-by: Ben Dooks <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
bjdooks-ct authored and gregkh committed Jun 26, 2016
1 parent 4e84e22 commit 107a4b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/renesas_usbhs/rcar3.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define UGCTRL2_RESERVED_3 0x00000001 /* bit[3:0] should be B'0001 */
#define UGCTRL2_USB0SEL_OTG 0x00000030

void usbhs_write32(struct usbhs_priv *priv, u32 reg, u32 data)
static void usbhs_write32(struct usbhs_priv *priv, u32 reg, u32 data)
{
iowrite32(data, priv->base + reg);
}
Expand Down

0 comments on commit 107a4b5

Please sign in to comment.