hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/bluetooth/hci_nokia.c
....@@ -1,18 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Bluetooth HCI UART H4 driver with Nokia Extensions AKA Nokia H4+
34 *
45 * Copyright (C) 2015 Marcel Holtmann <marcel@holtmann.org>
56 * Copyright (C) 2015-2017 Sebastian Reichel <sre@kernel.org>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
167 */
178
189 #include <linux/clk.h>
....@@ -529,7 +520,7 @@
529520 err = skb_pad(skb, 1);
530521 if (err)
531522 return err;
532
- skb_put_u8(skb, 0x00);
523
+ skb_put(skb, 1);
533524 }
534525
535526 skb_queue_tail(&btdev->txq, skb);
....@@ -743,7 +734,11 @@
743734 return err;
744735 }
745736
746
- clk_prepare_enable(sysclk);
737
+ err = clk_prepare_enable(sysclk);
738
+ if (err) {
739
+ dev_err(dev, "could not enable sysclk: %d", err);
740
+ return err;
741
+ }
747742 btdev->sysclk_speed = clk_get_rate(sysclk);
748743 clk_disable_unprepare(sysclk);
749744