forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/firewire/bebob/bebob_maudio.c
....@@ -1,9 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * bebob_maudio.c - a part of driver for BeBoB based devices
34 *
45 * Copyright (c) 2013-2014 Takashi Sakamoto
5
- *
6
- * Licensed under the terms of the GNU General Public License, version 2.
76 */
87
98 #include "./bebob.h"
....@@ -261,8 +260,9 @@
261260 struct special_params *params;
262261 int err;
263262
264
- params = kzalloc(sizeof(struct special_params), GFP_KERNEL);
265
- if (params == NULL)
263
+ params = devm_kzalloc(&bebob->card->card_dev,
264
+ sizeof(struct special_params), GFP_KERNEL);
265
+ if (!params)
266266 return -ENOMEM;
267267
268268 mutex_lock(&bebob->mutex);