The backported parts of the regulator subsystem are depending on the
regulator subsystem being build into the kernel, deactivate them if the
regulator subsystem was not activated in the kernel config.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0)) */
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0))
+#ifdef CONFIG_REGULATOR
/**
* regulator_map_voltage_ascend - map_voltage() for ascendant voltage list
*
}
EXPORT_SYMBOL_GPL(regulator_map_voltage_ascend);
+#endif /* CONFIG_REGULATOR */
#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0)) */
void proc_set_size(struct proc_dir_entry *de, loff_t size)
#include <linux/version.h>
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0))
+#ifdef CONFIG_REGULATOR
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/regulator/driver.h>
WARN_ON(rc);
}
EXPORT_SYMBOL_GPL(devm_regulator_unregister);
+#endif /* CONFIG_REGULATOR */
#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)) */