From: Yinghai Lu Date: Fri, 10 Feb 2012 23:33:47 +0000 (-0800) Subject: PCI: Fix "cardbus bridge resources as optional" size handling X-Git-Tag: v3.4-rc1~114^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1184893439b1a7532b579a85a354db12bbf1b277;p=pandora-kernel.git PCI: Fix "cardbus bridge resources as optional" size handling We should not set the requested size to -2; that will confuse the resource list sorting with align when SIZEALIGN is used. Change to STARTALIGN and pass align from start; we are safe to do that just as we do that regular pci bridge. In the long run, we should just treat cardbus like a regular pci bridge. Also fix the case when realloc_head is not passed: we should keep the requested size. Signed-off-by: Yinghai Lu Tested-by: Dominik Brodowski Acked-by: Ram Pai Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed