ASoC: rx1950: check that machine is rx1950 in glue driver
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
df3c278eb3
commit
dedc3cf54e
1 changed files with 5 additions and 0 deletions
|
@ -40,6 +40,8 @@
|
||||||
|
|
||||||
#include <mach/regs-clock.h>
|
#include <mach/regs-clock.h>
|
||||||
|
|
||||||
|
#include <asm/mach-types.h>
|
||||||
|
|
||||||
#include "s3c-dma.h"
|
#include "s3c-dma.h"
|
||||||
#include "s3c24xx-i2s.h"
|
#include "s3c24xx-i2s.h"
|
||||||
#include "../codecs/uda1380.h"
|
#include "../codecs/uda1380.h"
|
||||||
|
@ -274,6 +276,9 @@ static int __init rx1950_init(void)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
if (!machine_is_rx1950())
|
||||||
|
return -ENODEV;
|
||||||
|
|
||||||
/* configure some gpios */
|
/* configure some gpios */
|
||||||
ret = gpio_request(S3C2410_GPA(1), "speaker-power");
|
ret = gpio_request(S3C2410_GPA(1), "speaker-power");
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
Loading…
Add table
Reference in a new issue