Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 227001
b: refs/heads/master
c: f7ec943
h: refs/heads/master
i:
  226999: 3cb24a8
v: v3
  • Loading branch information
Felipe Balbi committed Dec 10, 2010
1 parent 3cd1944 commit 8afce33
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 10 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: a023c631f546ef95d58969385825a47652ab9039
refs/heads/master: f7ec94370f417fedad4db1054228ef958d48b926
4 changes: 3 additions & 1 deletion trunk/drivers/usb/musb/am35x.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
}
}

const struct musb_platform_ops musb_ops = {
static const struct musb_platform_ops am35x_ops = {
.init = am35x_musb_init,
.exit = am35x_musb_exit,

Expand Down Expand Up @@ -572,6 +572,8 @@ static int __init am35x_probe(struct platform_device *pdev)
glue->dev = &pdev->dev;
glue->musb = musb;

pdata->platform_ops = &am35x_ops;

platform_set_drvdata(pdev, glue);

ret = platform_device_add_resources(musb, pdev->resource,
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/usb/musb/blackfin.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ static int bfin_musb_exit(struct musb *musb)
return 0;
}

const struct musb_platform_ops musb_ops = {
static const struct musb_platform_ops bfin_ops = {
.init = bfin_musb_init,
.exit = bfin_musb_exit,

Expand Down Expand Up @@ -479,6 +479,8 @@ static int __init bfin_probe(struct platform_device *pdev)
glue->dev = &pdev->dev;
glue->musb = musb;

pdata->platform_ops = &bfin_ops;

platform_set_drvdata(pdev, glue);

ret = platform_device_add_resources(musb, pdev->resource,
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/usb/musb/da8xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ static int da8xx_musb_exit(struct musb *musb)
return 0;
}

const struct musb_platform_ops musb_ops = {
static const struct musb_platform_ops da8xx_ops = {
.init = da8xx_musb_init,
.exit = da8xx_musb_exit,

Expand Down Expand Up @@ -517,6 +517,8 @@ static int __init da8xx_probe(struct platform_device *pdev)
glue->dev = &pdev->dev;
glue->musb = musb;

pdata->platform_ops = &da8xx_ops;

platform_set_drvdata(pdev, glue);

ret = platform_device_add_resources(musb, pdev->resource,
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/usb/musb/davinci.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ static int davinci_musb_exit(struct musb *musb)
return 0;
}

const struct musb_platform_ops musb_ops = {
static const struct musb_platform_ops davinci_ops = {
.init = davinci_musb_init,
.exit = davinci_musb_exit,

Expand Down Expand Up @@ -551,6 +551,8 @@ static int __init davinci_probe(struct platform_device *pdev)
glue->dev = &pdev->dev;
glue->musb = musb;

pdata->platform_ops = &davinci_ops;

platform_set_drvdata(pdev, glue);

ret = platform_device_add_resources(musb, pdev->resource,
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/musb/musb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1897,7 +1897,6 @@ allocate_instance(struct device *dev,
}

musb->controller = dev;
musb->ops = &musb_ops;

return musb;
}
Expand Down Expand Up @@ -1997,6 +1996,7 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl)
musb->board_set_power = plat->set_power;
musb->set_clock = plat->set_clock;
musb->min_power = plat->min_power;
musb->ops = plat->platform_ops;

/* Clock usage is chip-specific ... functional clock (DaVinci,
* OMAP2430), or PHY ref (some TUSB6010 boards). All this core
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/usb/musb/musb_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,6 @@ struct musb_platform_ops {
void (*set_vbus)(struct musb *musb, int on);
};

extern const struct musb_platform_ops musb_ops;

/*
* struct musb_hw_ep - endpoint hardware (bidirectional)
*
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/usb/musb/omap2430.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ static int omap2430_musb_exit(struct musb *musb)
return 0;
}

const struct musb_platform_ops musb_ops = {
static const struct musb_platform_ops omap2430_ops = {
.init = omap2430_musb_init,
.exit = omap2430_musb_exit,

Expand Down Expand Up @@ -378,6 +378,8 @@ static int __init omap2430_probe(struct platform_device *pdev)
glue->dev = &pdev->dev;
glue->musb = musb;

pdata->platform_ops = &omap2430_ops;

platform_set_drvdata(pdev, glue);

ret = platform_device_add_resources(musb, pdev->resource,
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/usb/musb/tusb6010.c
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ static int tusb_musb_exit(struct musb *musb)
return 0;
}

const struct musb_platform_ops musb_ops = {
static const struct musb_platform_ops tusb_ops = {
.init = tusb_musb_init,
.exit = tusb_musb_exit,

Expand Down Expand Up @@ -1221,6 +1221,8 @@ static int __init tusb_probe(struct platform_device *pdev)
glue->dev = &pdev->dev;
glue->musb = musb;

pdata->platform_ops = &tusb_ops;

platform_set_drvdata(pdev, glue);

ret = platform_device_add_resources(musb, pdev->resource,
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/linux/usb/musb.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ struct musb_hdrc_platform_data {

/* Architecture specific board data */
void *board_data;

/* Platform specific struct musb_ops pointer */
const void *platform_ops;
};


Expand Down

0 comments on commit 8afce33

Please sign in to comment.