.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * PS3 virtual uart |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2006 Sony Computer Entertainment Inc. |
---|
5 | 6 | * Copyright 2006 Sony Corp. |
---|
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; version 2 of the License. |
---|
10 | | - * |
---|
11 | | - * This program is distributed in the hope that it will be useful, |
---|
12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | | - * GNU General Public License for more details. |
---|
15 | | - * |
---|
16 | | - * You should have received a copy of the GNU General Public License |
---|
17 | | - * along with this program; if not, write to the Free Software |
---|
18 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
19 | 7 | */ |
---|
20 | 8 | |
---|
21 | 9 | #include <linux/kernel.h> |
---|
.. | .. |
---|
870 | 858 | return 0; |
---|
871 | 859 | } |
---|
872 | 860 | |
---|
873 | | -struct vuart_bus_priv { |
---|
| 861 | +static struct vuart_bus_priv { |
---|
874 | 862 | struct ports_bmp *bmp; |
---|
875 | 863 | unsigned int virq; |
---|
876 | 864 | struct mutex probe_mutex; |
---|
877 | 865 | int use_count; |
---|
878 | 866 | struct ps3_system_bus_device *devices[PORT_COUNT]; |
---|
879 | | -} static vuart_bus_priv; |
---|
| 867 | +} vuart_bus_priv; |
---|
880 | 868 | |
---|
881 | 869 | /** |
---|
882 | 870 | * ps3_vuart_irq_handler - first stage interrupt handler |
---|
.. | .. |
---|
929 | 917 | vuart_bus_priv.bmp = kzalloc(sizeof(struct ports_bmp), GFP_KERNEL); |
---|
930 | 918 | |
---|
931 | 919 | if (!vuart_bus_priv.bmp) { |
---|
932 | | - pr_debug("%s:%d: kzalloc failed.\n", __func__, __LINE__); |
---|
933 | 920 | result = -ENOMEM; |
---|
934 | 921 | goto fail_bmp_malloc; |
---|
935 | 922 | } |
---|