kernel-module-qualcomm: do not log any error if dtb regdomain is not set

Do not add a log error if there is not defined a device tree entry for the
regulatory domain.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
Isaac Hermida 2016-07-27 13:59:38 +02:00
parent 02c961eb3f
commit fc959bd23f
1 changed files with 7 additions and 5 deletions

View File

@ -61,7 +61,9 @@ case "${DTB_REGION_CODE}" in
${US_CODE}|${WW_CODE}|${JP_CODE})
REGULATORY_DOMAIN=${DTB_REGION_CODE};;
*)
if [ -n "${DTB_REGION_CODE}" ]; then
logger -t qca6564 "[ERROR] Invalid region code in device tree, using OTP value"
fi
REGULATORY_DOMAIN=${OTP_REGION_CODE};;
esac