diff options
| author | Olof Johansson <olof@lixom.net> | 2014-09-23 22:11:05 -0700 | 
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2014-09-23 22:11:25 -0700 | 
| commit | 8adc36bcd374dc7381d15e654215dd1f548ccbef (patch) | |
| tree | afc86512891f75b04efa0273694a977a77529a86 /kernel/resource.c | |
| parent | 96bdd9aeb2cbc5eaae586f4d43badd072611fcb1 (diff) | |
| parent | d27704d1ec2f9ba06247b402c58a6f2febecef78 (diff) | |
Merge tag 'dt-for-v3.18' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/dt
Merge "omap dts changes for v3.18 merge window" from Tony Lindgren:
Changes for .dts files for omaps for v3.18 merge window:
- Updates for gta04 to add gta04a3 model
- Add support for Tehnexion TAO3530 boards
- Regulator names for beaglebone
- Pinctrl related updates for omap5, dra7 and am437
- Model name fix for sbc-t54
- Enable mailbox for various omaps
* tag 'dt-for-v3.18' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: (291 commits)
  ARM: dts: OMAP2+: Add sub mailboxes device node information
  ARM: dts: dra7-evm: Mark uart1 rxd as wakeup capable
  ARM: dts: OMAP5 / DRA7: switch over to interrupts-extended property for UART
  ARM: dts: AM437x: switch to compatible pinctrl
  ARM: dts: DRA7: switch to compatible pinctrl
  ARM: dts: OMAP5: switch to compatible pinctrl
  ARM: dts: am335x-boneblack: Add names for remaining regulators
  ARM: dts: sbc-t54: fix model property
  ARM: dts: omap5.dtsi: add DSS RFBI node
  ARM: dts: omap3: Add HEAD acoustics omap3-ha.dts and omap3-ha-lcd.dts (TAO3530 based)
  ARM: dts: omap3: Add Technexion Thunder support (TAO3530 SOM based)
  ARM: dts: omap3: Add Technexion TAO3530 SOM omap3-tao3530.dtsi
  ARM: OMAP2+: tao3530: Add pdata-quirk for the mmc2 internal clock
  ARM: OMAP2+: board-generic: add support for AM57xx family
  ARM: dts: dra72-evm: Add tps65917 PMIC node
  ARM: dts: dra72-evm: Enable I2C1 node
  Linux 3.17-rc3
  unicore32: Fix build error
  vexpress/spc: fix a build warning on array bounds
  spi: sh-msiof: Fix transmit-only DMA transfers
  ...
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'kernel/resource.c')
| -rw-r--r-- | kernel/resource.c | 11 | 
1 files changed, 4 insertions, 7 deletions
diff --git a/kernel/resource.c b/kernel/resource.c index da14b8d09296..60c5a3856ab7 100644 --- a/kernel/resource.c +++ b/kernel/resource.c @@ -351,15 +351,12 @@ static int find_next_iomem_res(struct resource *res, char *name,  	end = res->end;  	BUG_ON(start >= end); -	read_lock(&resource_lock); - -	if (first_level_children_only) { -		p = iomem_resource.child; +	if (first_level_children_only)  		sibling_only = true; -	} else -		p = &iomem_resource; -	while ((p = next_resource(p, sibling_only))) { +	read_lock(&resource_lock); + +	for (p = iomem_resource.child; p; p = next_resource(p, sibling_only)) {  		if (p->flags != res->flags)  			continue;  		if (name && strcmp(p->name, name))  | 
