Skip to content

Commit

Permalink
USB: ehci-s5p : use __devinit and __devexit macros for probe and remove
Browse files Browse the repository at this point in the history
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: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jingoo Han authored and Greg Kroah-Hartman committed May 10, 2011
1 parent c851e83 commit 27362d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/usb/host/ehci-s5p.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static const struct hc_driver s5p_ehci_hc_driver = {
.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_hcd *s5p_ehci;
Expand Down Expand Up @@ -158,7 +158,7 @@ static int s5p_ehci_probe(struct platform_device *pdev)
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_hcd *s5p_ehci = platform_get_drvdata(pdev);
Expand Down Expand Up @@ -191,7 +191,7 @@ static void s5p_ehci_shutdown(struct platform_device *pdev)

static struct platform_driver s5p_ehci_driver = {
.probe = s5p_ehci_probe,
.remove = s5p_ehci_remove,
.remove = __devexit_p(s5p_ehci_remove),
.shutdown = s5p_ehci_shutdown,
.driver = {
.name = "s5p-ehci",
Expand Down

0 comments on commit 27362d4

Please sign in to comment.