staging: comedi: fix a race between do_cmd_ioctl() and read/write
[linux/fpc-iii.git] / arch / arm / mach-ux500 / devices.c
blobea0a2f92ca70875ff0716722f35fbd3dc45a91dd
1 /*
2 * Copyright (C) ST-Ericsson SA 2010
4 * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson
5 * License terms: GNU General Public License (GPL) version 2
6 */
8 #include <linux/kernel.h>
9 #include <linux/platform_device.h>
10 #include <linux/interrupt.h>
11 #include <linux/io.h>
12 #include <linux/amba/bus.h>
14 #include <mach/hardware.h>
15 #include <mach/setup.h>
17 void __init amba_add_devices(struct amba_device *devs[], int num)
19 int i;
21 for (i = 0; i < num; i++) {
22 struct amba_device *d = devs[i];
23 amba_device_register(d, &iomem_resource);