Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127257
b: refs/heads/master
c: 68144e0
h: refs/heads/master
i:
  127255: 5dfa30c
v: v3
  • Loading branch information
Philipp Zabel authored and Greg Kroah-Hartman committed Jan 7, 2009
1 parent 1b57fec commit 13932bc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 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: 6084f1bf0c51a99cbba612ee90a4607cffb8b042
refs/heads/master: 68144e0cc92125f41157ede7b060f83367bc4fe7
6 changes: 6 additions & 0 deletions trunk/arch/arm/plat-omap/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ struct otg_transceiver *otg_get_transceiver(void)
}
EXPORT_SYMBOL(otg_get_transceiver);

void otg_put_transceiver(struct otg_transceiver *x)
{
put_device(x->dev);
}
EXPORT_SYMBOL(otg_put_transceiver);

int otg_set_transceiver(struct otg_transceiver *x)
{
if (xceiv && x)
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/usb/gadget/omap_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3006,7 +3006,7 @@ static int __init omap_udc_probe(struct platform_device *pdev)

cleanup0:
if (xceiv)
put_device(xceiv->dev);
otg_put_transceiver(xceiv);

if (cpu_is_omap16xx() || cpu_is_omap24xx()) {
clk_disable(hhc_clk);
Expand Down Expand Up @@ -3034,7 +3034,7 @@ static int __exit omap_udc_remove(struct platform_device *pdev)

pullup_disable(udc);
if (udc->transceiver) {
put_device(udc->transceiver->dev);
otg_put_transceiver(udc->transceiver);
udc->transceiver = NULL;
}
omap_writew(0, UDC_SYSCON1);
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/usb/otg.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ extern int otg_set_transceiver(struct otg_transceiver *);

/* for usb host and peripheral controller drivers */
extern struct otg_transceiver *otg_get_transceiver(void);
extern void otg_put_transceiver(struct otg_transceiver *);

static inline int
otg_start_hnp(struct otg_transceiver *otg)
Expand Down

0 comments on commit 13932bc

Please sign in to comment.