hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
kernel/drivers/ps3/ps3-vuart.c
....@@ -1,21 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * PS3 virtual uart
34 *
45 * Copyright (C) 2006 Sony Computer Entertainment Inc.
56 * 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
197 */
208
219 #include <linux/kernel.h>
....@@ -870,13 +858,13 @@
870858 return 0;
871859 }
872860
873
-struct vuart_bus_priv {
861
+static struct vuart_bus_priv {
874862 struct ports_bmp *bmp;
875863 unsigned int virq;
876864 struct mutex probe_mutex;
877865 int use_count;
878866 struct ps3_system_bus_device *devices[PORT_COUNT];
879
-} static vuart_bus_priv;
867
+} vuart_bus_priv;
880868
881869 /**
882870 * ps3_vuart_irq_handler - first stage interrupt handler
....@@ -929,7 +917,6 @@
929917 vuart_bus_priv.bmp = kzalloc(sizeof(struct ports_bmp), GFP_KERNEL);
930918
931919 if (!vuart_bus_priv.bmp) {
932
- pr_debug("%s:%d: kzalloc failed.\n", __func__, __LINE__);
933920 result = -ENOMEM;
934921 goto fail_bmp_malloc;
935922 }