1 /* Copyright (c) 2012, The Linux Foundation. All rights reserved.
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
13 #include <linux/slimbus/slimbus.h>
14 #include <linux/of_irq.h>
16 #ifdef CONFIG_OF_SLIMBUS
18 * of_slim_register_devices() - Register devices in the SLIMbus Device Tree
19 * @ctrl: slim_controller which devices should be registered to.
21 * This routine scans the SLIMbus Device Tree, allocating resources and
22 * creating slim_devices according to the SLIMbus Device Tree
23 * hierarchy. Details of this hierarchy can be found in
24 * Documentation/devicetree/bindings/slimbus. This routine is normally
25 * called from the probe routine of the driver registering as a
28 extern int of_register_slim_devices(struct slim_controller *ctrl);
30 static int of_register_slim_devices(struct slim_controller *ctrl)
34 #endif /* CONFIG_OF_SLIMBUS */