diff options
Diffstat (limited to 'sound/arm/aaci.c')
-rw-r--r-- | sound/arm/aaci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/arm/aaci.c b/sound/arm/aaci.c index b0a474494966..89096e811a4b 100644 --- a/sound/arm/aaci.c +++ b/sound/arm/aaci.c | |||
@@ -999,7 +999,7 @@ static struct aaci * __devinit aaci_init_card(struct amba_device *dev) | |||
999 | card = snd_card_new(SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1, | 999 | card = snd_card_new(SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1, |
1000 | THIS_MODULE, sizeof(struct aaci)); | 1000 | THIS_MODULE, sizeof(struct aaci)); |
1001 | if (card == NULL) | 1001 | if (card == NULL) |
1002 | return ERR_PTR(-ENOMEM); | 1002 | return NULL; |
1003 | 1003 | ||
1004 | card->private_free = aaci_free_card; | 1004 | card->private_free = aaci_free_card; |
1005 | 1005 | ||
@@ -1083,8 +1083,8 @@ static int __devinit aaci_probe(struct amba_device *dev, void *id) | |||
1083 | return ret; | 1083 | return ret; |
1084 | 1084 | ||
1085 | aaci = aaci_init_card(dev); | 1085 | aaci = aaci_init_card(dev); |
1086 | if (IS_ERR(aaci)) { | 1086 | if (!aaci) { |
1087 | ret = PTR_ERR(aaci); | 1087 | ret = -ENOMEM; |
1088 | goto out; | 1088 | goto out; |
1089 | } | 1089 | } |
1090 | 1090 | ||