Commit | Line | Data |
---|---|---|
afcad884 TJ |
1 | /* |
2 | * arch/arm/mach-kirkwood/nsa-310-setup.c | |
3 | * | |
4 | * ZyXEL NSA-310 Setup | |
5 | * | |
6 | * This file is licensed under the terms of the GNU General Public | |
7 | * License version 2. This program is licensed "as is" without any | |
8 | * warranty of any kind, whether express or implied. | |
9 | */ | |
10 | ||
11 | #include <linux/kernel.h> | |
12 | #include <linux/init.h> | |
afcad884 | 13 | #include <mach/kirkwood.h> |
92cb7625 | 14 | #include <linux/of.h> |
afcad884 | 15 | #include "common.h" |
afcad884 TJ |
16 | |
17 | static int __init nsa310_pci_init(void) | |
18 | { | |
19 | if (of_machine_is_compatible("zyxel,nsa310")) | |
20 | kirkwood_pcie_init(KW_PCIE0); | |
21 | ||
22 | return 0; | |
23 | } | |
24 | ||
25 | subsys_initcall(nsa310_pci_init); |