summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xv4l/scripts/make_kconfig.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/v4l/scripts/make_kconfig.pl b/v4l/scripts/make_kconfig.pl
index e228d38b4..b553a8a06 100755
--- a/v4l/scripts/make_kconfig.pl
+++ b/v4l/scripts/make_kconfig.pl
@@ -502,6 +502,12 @@ if (!defined $kernopts{HAS_IOMEM} && cmp_ver($kernver, '2.6.22') < 0) {
$kernopts{HAS_IOMEM} = 2;
}
+# Kernel < 2.6.23 is missing the VIRT_TO_BUS option
+if (!defined $kernopts{VIRT_TO_BUS} && cmp_ver($kernver, '2.6.23') < 0) {
+ # VIRT_TO_BUS -> !PPC64
+ $kernopts{VIRT_TO_BUS} = 2 - $kernopts{PPC64};
+}
+
# Get minimum kernel version for our variables
parse_versions();