Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 227011
b: refs/heads/master
c: 7841737
h: refs/heads/master
i:
  227009: e2615c0
  227007: 45198f3
v: v3
  • Loading branch information
Felipe Balbi committed Dec 10, 2010
1 parent f54939d commit 5e2f45b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 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: fcd22e3b1f12e026dfefca20c97ff550a0e11b2b
refs/heads/master: 784173723e2fd23332af948a90612950964cd140
4 changes: 0 additions & 4 deletions trunk/drivers/usb/musb/musb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2306,8 +2306,6 @@ static void musb_save_context(struct musb *musb)
musb_read_rxhubport(musb_base, i);
}
}

musb_platform_suspend(musb);
}

static void musb_restore_context(struct musb *musb)
Expand All @@ -2317,8 +2315,6 @@ static void musb_restore_context(struct musb *musb)
void __iomem *ep_target_regs;
void __iomem *epio;

musb_platform_resume(musb);

if (is_host_enabled(musb)) {
musb_writew(musb_base, MUSB_FRAME, musb->context.frame);
musb_writeb(musb_base, MUSB_TESTMODE, musb->context.testmode);
Expand Down
21 changes: 0 additions & 21 deletions trunk/drivers/usb/musb/musb_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,6 @@ enum musb_g_ep0_state {
* struct musb_platform_ops - Operations passed to musb_core by HW glue layer
* @init: turns on clocks, sets up platform-specific registers, etc
* @exit: undoes @init
* @suspend: platform-specific suspend, e.g. context save
* @resume: platform-specific resume, e.g. context restore
* @set_mode: forcefully changes operating mode
* @try_ilde: tries to idle the IP
* @vbus_status: returns vbus status if possible
Expand All @@ -268,9 +266,6 @@ struct musb_platform_ops {
int (*init)(struct musb *musb);
int (*exit)(struct musb *musb);

int (*suspend)(struct musb *musb);
int (*resume)(struct musb *musb);

void (*enable)(struct musb *musb);
void (*disable)(struct musb *musb);

Expand Down Expand Up @@ -660,20 +655,4 @@ static inline int musb_platform_exit(struct musb *musb)
return musb->ops->exit(musb);
}

static inline int musb_platform_suspend(struct musb *musb)
{
if (!musb->ops->suspend)
return 0;

return musb->ops->suspend(musb);
}

static inline int musb_platform_resume(struct musb *musb)
{
if (!musb->ops->resume)
return 0;

return musb->ops->resume(musb);
}

#endif /* __MUSB_CORE_H__ */

0 comments on commit 5e2f45b

Please sign in to comment.