diff options
author | Simon Glass | 2019-02-16 20:24:53 -0700 |
---|---|---|
committer | Bin Meng | 2019-02-20 15:27:08 +0800 |
commit | e65f9ef9f21058a7e4f54e11da1af49a8c1b0579 (patch) | |
tree | 2e7fe0e5ae595c21279468f2bc33e7205d57d5af /drivers | |
parent | 67b0cda76a19c5fc8a0019cfdc4af9006bfad8d5 (diff) |
sound: Mark sound_setup() as optional
This method in the sound API is optional since some drivers can do this
when probing or as part of SoC init. Mark it as such.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/sound/sound-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/sound/sound-uclass.c b/drivers/sound/sound-uclass.c index 2b836268896..067660623b2 100644 --- a/drivers/sound/sound-uclass.c +++ b/drivers/sound/sound-uclass.c @@ -16,7 +16,7 @@ int sound_setup(struct udevice *dev) struct sound_ops *ops = sound_get_ops(dev); if (!ops->setup) - return -ENOSYS; + return 0; return ops->setup(dev); } |