Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From f0bf2f43b2a6717a8212e91d10a5614fc8cd1517 Mon Sep 17 00:00:00 2001
- From: Joe Balough <[email protected]>
- Date: Fri, 23 Nov 2018 12:04:02 -0500
- Subject: [PATCH 05/11] mxsfb: mxsfb_init: Fix lcd_rs_gpio
- When using a gpio for lcd_rs, request the correct gpio number
- (the value read from the device tree and stored in lcd_rs_gpio)
- instead of attempting to request the value of lcd_rs_is_gpio
- which is 0.
- This fixes using a gpio for lcd_rs.
- ---
- drivers/video/fbdev/mxsfb.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
- diff --git a/drivers/video/fbdev/mxsfb.c b/drivers/video/fbdev/mxsfb.c
- index 875577aa9cdd..18782cd61c62 100644
- --- a/drivers/video/fbdev/mxsfb.c
- +++ b/drivers/video/fbdev/mxsfb.c
- @@ -1550,7 +1550,7 @@ static int mxsfb_init_fbinfo_dt(struct mxsfb_info *host)
- host->mpu_lcd_sigs->lcd_rs_gpio = of_get_named_gpio(display_np, "lcd_rs_gpio", 0);
- if (gpio_is_valid(host->mpu_lcd_sigs->lcd_rs_gpio)) {
- dev_info(dev, "find lcd rs gpio pin.\n");
- - if (devm_gpio_request_one(dev, host->mpu_lcd_sigs->lcd_rs_is_gpio, GPIOF_OUT_INIT_HIGH, "lcd_rs") >= 0)
- + if (devm_gpio_request_one(dev, host->mpu_lcd_sigs->lcd_rs_gpio, GPIOF_OUT_INIT_HIGH, "lcd_rs") >= 0)
- host->mpu_lcd_sigs->lcd_rs_is_gpio = 1;
- }
- --
- 2.19.1
Add Comment
Please, Sign In to add comment