From: Witold Szczeponik Date: Sat, 15 Dec 2012 00:00:14 +0000 (+0100) Subject: PNP: Simplify setting of resources X-Git-Tag: v3.8-rc3~9^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9377667e6cdf4ac910b0932868275eb0dbfcfeb;p=pandora-kernel.git PNP: Simplify setting of resources This patch factors out the setting of PNP resources into one function which is then reused for all PNP resource types. This makes the code more concise and avoids duplication. The parameters "type" and "flags" are not used at the moment but may be used by follow-up patches. Placeholders for these patches can be found in the comment lines that contain the "TBD" marker. As the code does not make any changes to the ABI, no regressions are expected. NB: While at it, support for bus type resources is added. Signed-off-by: Witold Szczeponik Reviewed-by: Bjorn Helgaas Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed