diff options
Diffstat (limited to 'sound/drivers/portman2x4.c')
| -rw-r--r-- | sound/drivers/portman2x4.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/drivers/portman2x4.c b/sound/drivers/portman2x4.c index 1b832870cc84..b1c047ec19af 100644 --- a/sound/drivers/portman2x4.c +++ b/sound/drivers/portman2x4.c | |||
| @@ -37,7 +37,6 @@ | |||
| 37 | * - ported from alsa 0.5 to 1.0 | 37 | * - ported from alsa 0.5 to 1.0 |
| 38 | */ | 38 | */ |
| 39 | 39 | ||
| 40 | #include <sound/driver.h> | ||
| 41 | #include <linux/init.h> | 40 | #include <linux/init.h> |
| 42 | #include <linux/platform_device.h> | 41 | #include <linux/platform_device.h> |
| 43 | #include <linux/parport.h> | 42 | #include <linux/parport.h> |
| @@ -797,6 +796,8 @@ static int __devinit snd_portman_probe(struct platform_device *pdev) | |||
| 797 | 796 | ||
| 798 | platform_set_drvdata(pdev, card); | 797 | platform_set_drvdata(pdev, card); |
| 799 | 798 | ||
| 799 | snd_card_set_dev(card, &pdev->dev); | ||
| 800 | |||
| 800 | /* At this point card will be usable */ | 801 | /* At this point card will be usable */ |
| 801 | if ((err = snd_card_register(card)) < 0) { | 802 | if ((err = snd_card_register(card)) < 0) { |
| 802 | snd_printd("Cannot register card\n"); | 803 | snd_printd("Cannot register card\n"); |
