[scripts] env: colorize git output
[openwrt.git] / target / linux / ar71xx / patches-3.3 / 104-MIPS-ath79-make-ath724x_pcibios_init-visible-for-ext.patch
1 From 7e59b95e3424c078de0d75d699433da0dd289fc1 Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Fri, 18 Nov 2011 10:13:37 +0100
4 Subject: [PATCH 04/35] MIPS: ath79: make ath724x_pcibios_init visible for external code
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Signed-off-by: René Bolldorf <xsecute@googlemail.com>
10 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
11
12 v4: - add a sob tag
13 v3: - no changes
14 v2: - fix a typo in my e-mail address
15 ---
16 arch/mips/include/asm/mach-ath79/pci.h | 20 ++++++++++++++++++++
17 arch/mips/pci/pci-ath724x.c | 3 ++-
18 2 files changed, 22 insertions(+), 1 deletions(-)
19 create mode 100644 arch/mips/include/asm/mach-ath79/pci.h
20
21 --- /dev/null
22 +++ b/arch/mips/include/asm/mach-ath79/pci.h
23 @@ -0,0 +1,20 @@
24 +/*
25 + * Atheros 724x PCI support
26 + *
27 + * Copyright (C) 2011 René Bolldorf <xsecute@googlemail.com>
28 + *
29 + * This program is free software; you can redistribute it and/or modify it
30 + * under the terms of the GNU General Public License version 2 as published
31 + * by the Free Software Foundation.
32 + */
33 +
34 +#ifndef __ASM_MACH_ATH79_PCI_H
35 +#define __ASM_MACH_ATH79_PCI_H
36 +
37 +#if defined(CONFIG_PCI) && defined(CONFIG_SOC_AR724X)
38 +int ath724x_pcibios_init(void);
39 +#else
40 +static inline int ath724x_pcibios_init(void) { return 0 };
41 +#endif
42 +
43 +#endif /* __ASM_MACH_ATH79_PCI_H */
44 --- a/arch/mips/pci/pci-ath724x.c
45 +++ b/arch/mips/pci/pci-ath724x.c
46 @@ -9,6 +9,7 @@
47 */
48
49 #include <linux/pci.h>
50 +#include <asm/mach-ath79/pci.h>
51
52 #define reg_read(_phys) (*(unsigned int *) KSEG1ADDR(_phys))
53 #define reg_write(_phys, _val) ((*(unsigned int *) KSEG1ADDR(_phys)) = (_val))
54 @@ -130,7 +131,7 @@ static struct pci_controller ath724x_pci
55 .mem_resource = &ath724x_mem_resource,
56 };
57
58 -static int __init ath724x_pcibios_init(void)
59 +int __init ath724x_pcibios_init(void)
60 {
61 register_pci_controller(&ath724x_pci_controller);
62
This page took 0.046939 seconds and 5 git commands to generate.