summaryrefslogtreecommitdiff
path: root/drivers/sound/sandbox.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-12-10 10:37:39 -0700
committerSimon Glass <sjg@chromium.org>2018-12-13 16:36:29 -0700
commitd6cadd591879ba9d2d8a4375bb65f5032b5fb987 (patch)
treeae5061c9c7affa9759e1707966eff298d0fce538 /drivers/sound/sandbox.c
parent6c986cfef4a104ad39faf381014b7c315984cab8 (diff)
dm: sound: Add conversion to driver model
Move the existing hardware drivers over to use driver model. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/sound/sandbox.c')
-rw-r--r--drivers/sound/sandbox.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/sound/sandbox.c b/drivers/sound/sandbox.c
index ee2635f41d2..83b3295f0d4 100644
--- a/drivers/sound/sandbox.c
+++ b/drivers/sound/sandbox.c
@@ -118,7 +118,10 @@ static int sandbox_i2s_probe(struct udevice *dev)
uc_priv->channels = 2;
uc_priv->id = 1;
- return sandbox_sdl_sound_init();
+ /* Ignore any error here - we'll just have no sound */
+ sandbox_sdl_sound_init();
+
+ return 0;
}
static int sandbox_sound_setup(struct udevice *dev)