Skip to content

Commit

Permalink
usb: musb: sunxi: make unexported symbols static
Browse files Browse the repository at this point in the history
The sunxi_musb_dma_controller_create and _destroy are not exported
or used outside the driver, so fix sparse warnings by making these
two static:

drivers/usb/musb/sunxi.c:357:23: warning: symbol 'sunxi_musb_dma_controller_create' was not declared. Should it be static?
drivers/usb/musb/sunxi.c:363:6: warning: symbol 'sunxi_musb_dma_controller_destroy' was not declared. Should it be static?

Signed-off-by: Ben Dooks <[email protected]>
Signed-off-by: Bin Liu <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
bjdooks-ct authored and gregkh committed Jul 16, 2016
1 parent 8ccb49d commit cd53bd6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/usb/musb/sunxi.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,13 +354,13 @@ static void sunxi_musb_disable(struct musb *musb)
clear_bit(SUNXI_MUSB_FL_ENABLED, &glue->flags);
}

struct dma_controller *sunxi_musb_dma_controller_create(struct musb *musb,
void __iomem *base)
static struct dma_controller *
sunxi_musb_dma_controller_create(struct musb *musb, void __iomem *base)
{
return NULL;
}

void sunxi_musb_dma_controller_destroy(struct dma_controller *c)
static void sunxi_musb_dma_controller_destroy(struct dma_controller *c)
{
}

Expand Down

0 comments on commit cd53bd6

Please sign in to comment.