mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-31 18:23:00 +09:00
ODROID-N2: keyboard: fix gpio power key.
Change-Id: I701f3e2a619a856da00e1ca9c967e9360ebd224d
This commit is contained in:
@@ -256,10 +256,6 @@ static int meson_gpio_kp_probe(struct platform_device *pdev)
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
//get all gpio desc.
|
||||
desc = devm_gpiod_get_index(&pdev->dev, "key", i, GPIOD_IN);
|
||||
if (IS_ERR_OR_NULL(desc))
|
||||
return -EINVAL;
|
||||
keypad->key[i].desc = desc;
|
||||
//The gpio default is high level.
|
||||
keypad->key[i].current_status = 1;
|
||||
|
||||
Reference in New Issue
Block a user