Skip to content

Commit

Permalink
usb: gadget: mv_udc: fix the warning of mv_udc_remove
Browse files Browse the repository at this point in the history
The __exit_p() will be NULL if MODULE is no defined.
It will cause the warning. Removing __exit_p to remove
the warning.

Signed-off-by: Chao Xie <chao.xie@marvell.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Chao Xie authored and Felipe Balbi committed Jan 24, 2013
1 parent 3517c31 commit 6a6f05f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/mv_udc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2461,7 +2461,7 @@ static void mv_udc_shutdown(struct platform_device *pdev)

static struct platform_driver udc_driver = {
.probe = mv_udc_probe,
.remove = __exit_p(mv_udc_remove),
.remove = mv_udc_remove,
.shutdown = mv_udc_shutdown,
.driver = {
.owner = THIS_MODULE,
Expand Down

0 comments on commit 6a6f05f

Please sign in to comment.