Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303829
b: refs/heads/master
c: f026a52
h: refs/heads/master
i:
  303827: e837f93
v: v3
  • Loading branch information
Lukasz Majewski authored and Felipe Balbi committed May 4, 2012
1 parent fd22825 commit ea9f1df
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f99b2bfebe8984db2b6e4c07e2bedc91977d27d8
refs/heads/master: f026a52d4309e1e08752a8bd41ac74aeea815686
14 changes: 13 additions & 1 deletion trunk/drivers/usb/gadget/s3c-hsotg.c
Original file line number Diff line number Diff line change
Expand Up @@ -3444,10 +3444,22 @@ static void __devexit s3c_hsotg_delete_debug(struct s3c_hsotg *hsotg)
debugfs_remove(hsotg->debug_root);
}

/**
* s3c_hsotg_release - release callback for hsotg device
* @dev: Device to for which release is called
*/
static void s3c_hsotg_release(struct device *dev)
{
struct s3c_hsotg *hsotg = dev_get_drvdata(dev);

kfree(hsotg);
}

/**
* s3c_hsotg_probe - probe function for hsotg driver
* @pdev: The platform information for the driver
*/

static int __devinit s3c_hsotg_probe(struct platform_device *pdev)
{
struct s3c_hsotg_plat *plat = pdev->dev.platform_data;
Expand Down Expand Up @@ -3531,6 +3543,7 @@ static int __devinit s3c_hsotg_probe(struct platform_device *pdev)

hsotg->gadget.dev.parent = dev;
hsotg->gadget.dev.dma_mask = dev->dma_mask;
hsotg->gadget.dev.release = s3c_hsotg_release;

/* reset the system */

Expand Down Expand Up @@ -3678,7 +3691,6 @@ static int __devexit s3c_hsotg_remove(struct platform_device *pdev)
clk_put(hsotg->clk);

device_unregister(&hsotg->gadget.dev);
kfree(hsotg);
return 0;
}

Expand Down

0 comments on commit ea9f1df

Please sign in to comment.