Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226951
b: refs/heads/master
c: 367576b
h: refs/heads/master
i:
  226949: 6645718
  226947: f61d971
  226943: 1485e35
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Dec 3, 2010
1 parent 077acbd commit a25d6a0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 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: 0607f8622953541e95030ab011258d9f1f381357
refs/heads/master: 367576b813ed66a000e66ec18f7082bbc84c05d7
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,6 +255,7 @@ 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 @@ -273,17 +274,17 @@ static int gaudio_close_snd_dev(struct gaudio *gau)

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

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

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

return 0;
Expand All @@ -304,8 +305,7 @@ 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");

if (!the_card)
else if (!the_card)
the_card = card;

return ret;
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 i1480_est_id_table[] = {
static struct usb_device_id __used 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 whcrc_id_table[] = {
static struct pci_device_id __used whcrc_id_table[] = {
{ PCI_DEVICE_CLASS(PCI_CLASS_WIRELESS_WHCI, ~0) },
{ /* empty last entry */ }
};
Expand Down

0 comments on commit a25d6a0

Please sign in to comment.