mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
Merge "soc: qcom: eud: Fix inconsistent nature of the cmdline"
This commit is contained in:
commit
cdc7a0e02c
1 changed files with 4 additions and 6 deletions
|
|
@ -84,11 +84,7 @@ static const unsigned int eud_extcon_cable[] = {
|
|||
EXTCON_NONE,
|
||||
};
|
||||
|
||||
/*
|
||||
* On the kernel command line specify eud.enable=1 to enable EUD.
|
||||
* EUD is disabled by default.
|
||||
*/
|
||||
static int enable = EUD_ENABLE_CMD;
|
||||
static int enable = EUD_DISABLE_CMD;
|
||||
static bool eud_ready;
|
||||
static struct platform_device *eud_private;
|
||||
|
||||
|
|
@ -719,8 +715,10 @@ static int msm_eud_probe(struct platform_device *pdev)
|
|||
eud_ready = true;
|
||||
|
||||
/* Proceed enable other EUD elements if bootloader has enabled it */
|
||||
if (enable && msm_eud_hw_is_enabled(pdev))
|
||||
if (msm_eud_hw_is_enabled(pdev)) {
|
||||
msm_eud_enable_irqs(chip);
|
||||
enable = EUD_ENABLE_CMD;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue