hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/powerpc/platforms/embedded6xx/holly.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Board setup routines for the IBM 750GX/CL platform w/ TSI10x bridge
34 *
....@@ -7,10 +8,6 @@
78 * Josh Boyer <jwboyer@linux.vnet.ibm.com>
89 *
910 * Based on code from mpc7448_hpc2.c
10
- *
11
- * This program is free software; you can redistribute it and/or
12
- * modify it under the terms of the GNU General Public License
13
- * version 2 as published by the Free Software Foundation.
1411 */
1512
1613 #include <linux/stddef.h>
....@@ -44,7 +41,8 @@
4441
4542 #define HOLLY_PCI_CFG_PHYS 0x7c000000
4643
47
-int holly_exclude_device(struct pci_controller *hose, u_char bus, u_char devfn)
44
+static int holly_exclude_device(struct pci_controller *hose, u_char bus,
45
+ u_char devfn)
4846 {
4947 if (bus == 0 && PCI_SLOT(devfn) == 0)
5048 return PCIBIOS_DEVICE_NOT_FOUND;
....@@ -187,13 +185,13 @@
187185 tsi108_write_reg(TSI108_MPIC_OFFSET + 0x30c, 0);
188186 }
189187
190
-void holly_show_cpuinfo(struct seq_file *m)
188
+static void holly_show_cpuinfo(struct seq_file *m)
191189 {
192190 seq_printf(m, "vendor\t\t: IBM\n");
193191 seq_printf(m, "machine\t\t: PPC750 GX/CL\n");
194192 }
195193
196
-void __noreturn holly_restart(char *cmd)
194
+static void __noreturn holly_restart(char *cmd)
197195 {
198196 __be32 __iomem *ocn_bar1 = NULL;
199197 unsigned long bar;
....@@ -231,18 +229,6 @@
231229
232230 /* Spin until reset happens. Shouldn't really get here */
233231 for (;;) ;
234
-}
235
-
236
-void holly_power_off(void)
237
-{
238
- local_irq_disable();
239
- /* No way to shut power off with software */
240
- for (;;) ;
241
-}
242
-
243
-void holly_halt(void)
244
-{
245
- holly_power_off();
246232 }
247233
248234 /*