Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226948
b: refs/heads/master
c: ea65df5
h: refs/heads/master
v: v3
  • Loading branch information
Hema Kalliguddi authored and Felipe Balbi committed Dec 1, 2010
1 parent f61d971 commit 470f69a
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 15 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: 16350a7258a3158807f3fafe33f1bb22b8ddd127
refs/heads/master: ea65df57c2eea803535a071752efb030c46a11f5
10 changes: 5 additions & 5 deletions trunk/drivers/usb/gadget/u_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ static int gaudio_open_snd_dev(struct gaudio *card)
ERROR(card, "No such PCM capture device: %s\n", fn_cap);
snd->substream = NULL;
snd->card = NULL;
snd->filp = NULL;
} else {
pcm_file = snd->filp->private_data;
snd->substream = pcm_file->substream;
Expand All @@ -274,17 +273,17 @@ static int gaudio_close_snd_dev(struct gaudio *gau)

/* Close control device */
snd = &gau->control;
if (snd->filp)
if (!IS_ERR(snd->filp))
filp_close(snd->filp, current->files);

/* Close PCM playback device and setup substream */
snd = &gau->playback;
if (snd->filp)
if (!IS_ERR(snd->filp))
filp_close(snd->filp, current->files);

/* Close PCM capture device and setup substream */
snd = &gau->capture;
if (snd->filp)
if (!IS_ERR(snd->filp))
filp_close(snd->filp, current->files);

return 0;
Expand All @@ -305,7 +304,8 @@ int __init gaudio_setup(struct gaudio *card)
ret = gaudio_open_snd_dev(card);
if (ret)
ERROR(card, "we need at least one control device\n");
else if (!the_card)

if (!the_card)
the_card = card;

return ret;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/musb/blackfin.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ int musb_platform_set_mode(struct musb *musb, u8 musb_mode)
return -EIO;
}

int __init musb_platform_init(struct musb *musb, void *board_data)
int __init musb_platform_init(struct musb *musb)
{

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/musb/davinci.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ int musb_platform_set_mode(struct musb *musb, u8 mode)
return -EIO;
}

int __init musb_platform_init(struct musb *musb, void *board_data)
int __init musb_platform_init(struct musb *musb)
{
void __iomem *tibase = musb->ctrl_base;
u32 revision;
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 @@ -2025,7 +2025,7 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl)
* isp1504, non-OTG, etc) mostly hooking up through ULPI.
*/
musb->isr = generic_interrupt;
status = musb_platform_init(musb, plat->board_data);
status = musb_platform_init(musb);
if (status < 0)
goto fail2;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/musb/musb_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ extern int musb_platform_get_vbus_status(struct musb *musb);
#define musb_platform_get_vbus_status(x) 0
#endif

extern int __init musb_platform_init(struct musb *musb, void *board_data);
extern int __init musb_platform_init(struct musb *musb);
extern int musb_platform_exit(struct musb *musb);

#endif /* __MUSB_CORE_H__ */
6 changes: 4 additions & 2 deletions trunk/drivers/usb/musb/omap2430.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,12 @@ int musb_platform_set_mode(struct musb *musb, u8 musb_mode)
return 0;
}

int __init musb_platform_init(struct musb *musb, void *board_data)
int __init musb_platform_init(struct musb *musb)
{
u32 l;
struct omap_musb_board_data *data = board_data;
struct device *dev = musb->controller;
struct musb_hdrc_platform_data *plat = dev->platform_data;
struct omap_musb_board_data *data = plat->board_data;

/* We require some kind of external transceiver, hooked
* up through ULPI. TWL4030-family PMICs include one,
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/musb/tusb6010.c
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ static int __init tusb_start(struct musb *musb)
return -ENODEV;
}

int __init musb_platform_init(struct musb *musb, void *board_data)
int __init musb_platform_init(struct musb *musb)
{
struct platform_device *pdev;
struct resource *mem;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/uwb/i1480/i1480-est.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ MODULE_LICENSE("GPL");
*
* [so we are loaded when this kind device is connected]
*/
static struct usb_device_id __used i1480_est_id_table[] = {
static struct usb_device_id i1480_est_id_table[] = {
{ USB_DEVICE(0x8086, 0xdf3b), },
{ USB_DEVICE(0x8086, 0x0c3b), },
{ },
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/uwb/whc-rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ static int whcrc_post_reset(struct umc_dev *umc)
}

/* PCI device ID's that we handle [so it gets loaded] */
static struct pci_device_id __used whcrc_id_table[] = {
static struct pci_device_id whcrc_id_table[] = {
{ PCI_DEVICE_CLASS(PCI_CLASS_WIRELESS_WHCI, ~0) },
{ /* empty last entry */ }
};
Expand Down

0 comments on commit 470f69a

Please sign in to comment.