Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88ae7423 authored by Yuan-Hsin Chen's avatar Yuan-Hsin Chen Committed by Felipe Balbi
Browse files

usb: gadget: fotg210-udc: remove __init and __exit



Remove __init and __exit from probe() and remove() and
would also fix the section mismatch issue.

Signed-off-by: default avatarYuan-Hsin Chen <yhchen@faraday-tech.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent ae40d64b
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1074,7 +1074,7 @@ static struct usb_gadget_ops fotg210_gadget_ops = {
	.udc_stop		= fotg210_udc_stop,
	.udc_stop		= fotg210_udc_stop,
};
};


static int __exit fotg210_udc_remove(struct platform_device *pdev)
static int fotg210_udc_remove(struct platform_device *pdev)
{
{
	struct fotg210_udc *fotg210 = dev_get_drvdata(&pdev->dev);
	struct fotg210_udc *fotg210 = dev_get_drvdata(&pdev->dev);


@@ -1088,7 +1088,7 @@ static int __exit fotg210_udc_remove(struct platform_device *pdev)
	return 0;
	return 0;
}
}


static int __init fotg210_udc_probe(struct platform_device *pdev)
static int fotg210_udc_probe(struct platform_device *pdev)
{
{
	struct resource *res, *ires;
	struct resource *res, *ires;
	struct fotg210_udc *fotg210 = NULL;
	struct fotg210_udc *fotg210 = NULL;