.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Bluetooth HCI UART H4 driver with Nokia Extensions AKA Nokia H4+ |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2015 Marcel Holtmann <marcel@holtmann.org> |
---|
5 | 6 | * 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. |
---|
16 | 7 | */ |
---|
17 | 8 | |
---|
18 | 9 | #include <linux/clk.h> |
---|
.. | .. |
---|
529 | 520 | err = skb_pad(skb, 1); |
---|
530 | 521 | if (err) |
---|
531 | 522 | return err; |
---|
532 | | - skb_put_u8(skb, 0x00); |
---|
| 523 | + skb_put(skb, 1); |
---|
533 | 524 | } |
---|
534 | 525 | |
---|
535 | 526 | skb_queue_tail(&btdev->txq, skb); |
---|
.. | .. |
---|
743 | 734 | return err; |
---|
744 | 735 | } |
---|
745 | 736 | |
---|
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 | + } |
---|
747 | 742 | btdev->sysclk_speed = clk_get_rate(sysclk); |
---|
748 | 743 | clk_disable_unprepare(sysclk); |
---|
749 | 744 | |
---|