]> git.baikalelectronics.ru Git - kernel.git/commit
resources: allow adjust_resource() for resources with no parent
authorYinghai Lu <yinghai@kernel.org>
Fri, 18 May 2012 01:51:11 +0000 (18:51 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 13 Jun 2012 21:42:22 +0000 (15:42 -0600)
commitd965df24fa6efa1ac60045b744737249d977dfe5
tree8f78691a62e6bdb699a2f8fda9f079916d59ace0
parent8c2d0caa66adc7a179fb1b4abdb613fc343ec2a5
resources: allow adjust_resource() for resources with no parent

If a resource has no parent, allow its start/end to be set arbitrarily
as long as any children are still contained within the new range.

[bhelgaas: changelog]
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
kernel/resource.c