Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309034
b: refs/heads/master
c: 659243c
h: refs/heads/master
v: v3
  • Loading branch information
Gabor Juhos authored and Ralf Baechle committed May 15, 2012
1 parent 52fdadd commit 7b6c43b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3a6208df8eb97e01fd8510762dd59dce375dd14d
refs/heads/master: 659243ccaf296ae122c159d4c573f93561e1b8d6
20 changes: 20 additions & 0 deletions trunk/arch/mips/include/asm/mach-ath79/pci.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Atheros 724x PCI support
*
* Copyright (C) 2011 René Bolldorf <xsecute@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/

#ifndef __ASM_MACH_ATH79_PCI_H
#define __ASM_MACH_ATH79_PCI_H

#if defined(CONFIG_PCI) && defined(CONFIG_SOC_AR724X)
int ath724x_pcibios_init(void);
#else
static inline int ath724x_pcibios_init(void) { return 0; }
#endif

#endif /* __ASM_MACH_ATH79_PCI_H */
3 changes: 2 additions & 1 deletion trunk/arch/mips/pci/pci-ath724x.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

#include <linux/pci.h>
#include <asm/mach-ath79/pci.h>

#define reg_read(_phys) (*(unsigned int *) KSEG1ADDR(_phys))
#define reg_write(_phys, _val) ((*(unsigned int *) KSEG1ADDR(_phys)) = (_val))
Expand Down Expand Up @@ -130,7 +131,7 @@ static struct pci_controller ath724x_pci_controller = {
.mem_resource = &ath724x_mem_resource,
};

static int __init ath724x_pcibios_init(void)
int __init ath724x_pcibios_init(void)
{
register_pci_controller(&ath724x_pci_controller);

Expand Down

0 comments on commit 7b6c43b

Please sign in to comment.