treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
[linux-2.6-block.git] / sound / soc / codecs / cs43130.c
index 3f7b255587e6aa83446e7fff7444e75217a802f8..7fb34422a2a4b087d5a785597ee225f3cf4b684e 100644 (file)
@@ -1,13 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * cs43130.c  --  CS43130 ALSA Soc Audio driver
  *
  * Copyright 2017 Cirrus Logic, Inc.
  *
  * Authors: Li Xu <li.xu@cirrus.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
  */
 #include <linux/module.h>
 #include <linux/moduleparam.h>
@@ -2322,6 +2319,8 @@ static int cs43130_probe(struct snd_soc_component *component)
                        return ret;
 
                cs43130->wq = create_singlethread_workqueue("cs43130_hp");
+               if (!cs43130->wq)
+                       return -ENOMEM;
                INIT_WORK(&cs43130->work, cs43130_imp_meas);
        }