提交 27362d46 编写于 作者: J Jingoo Han 提交者: Greg Kroah-Hartman

USB: ehci-s5p : use __devinit and __devexit macros for probe and remove

The __devinit and __devexit macros were added to probe and remove
functions. The macros move the probe and remove functions to the
devinit and devexit sections
Signed-off-by: NJingoo Han <jg1.han@samsung.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 c851e83f
...@@ -56,7 +56,7 @@ static const struct hc_driver s5p_ehci_hc_driver = { ...@@ -56,7 +56,7 @@ static const struct hc_driver s5p_ehci_hc_driver = {
.clear_tt_buffer_complete = ehci_clear_tt_buffer_complete, .clear_tt_buffer_complete = ehci_clear_tt_buffer_complete,
}; };
static int s5p_ehci_probe(struct platform_device *pdev) static int __devinit s5p_ehci_probe(struct platform_device *pdev)
{ {
struct s5p_ehci_platdata *pdata; struct s5p_ehci_platdata *pdata;
struct s5p_ehci_hcd *s5p_ehci; struct s5p_ehci_hcd *s5p_ehci;
...@@ -158,7 +158,7 @@ static int s5p_ehci_probe(struct platform_device *pdev) ...@@ -158,7 +158,7 @@ static int s5p_ehci_probe(struct platform_device *pdev)
return err; return err;
} }
static int s5p_ehci_remove(struct platform_device *pdev) static int __devexit s5p_ehci_remove(struct platform_device *pdev)
{ {
struct s5p_ehci_platdata *pdata = pdev->dev.platform_data; struct s5p_ehci_platdata *pdata = pdev->dev.platform_data;
struct s5p_ehci_hcd *s5p_ehci = platform_get_drvdata(pdev); struct s5p_ehci_hcd *s5p_ehci = platform_get_drvdata(pdev);
...@@ -191,7 +191,7 @@ static void s5p_ehci_shutdown(struct platform_device *pdev) ...@@ -191,7 +191,7 @@ static void s5p_ehci_shutdown(struct platform_device *pdev)
static struct platform_driver s5p_ehci_driver = { static struct platform_driver s5p_ehci_driver = {
.probe = s5p_ehci_probe, .probe = s5p_ehci_probe,
.remove = s5p_ehci_remove, .remove = __devexit_p(s5p_ehci_remove),
.shutdown = s5p_ehci_shutdown, .shutdown = s5p_ehci_shutdown,
.driver = { .driver = {
.name = "s5p-ehci", .name = "s5p-ehci",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册