diff options
| -rw-r--r-- | drivers/video/fbdev/atmel_lcdfb.c | 2 | ||||
| -rw-r--r-- | drivers/video/fbdev/bfin_adv7393fb.c | 2 | ||||
| -rw-r--r-- | drivers/video/fbdev/omap2/dss/omapdss-boot-init.c | 8 | ||||
| -rw-r--r-- | drivers/video/fbdev/vt8500lcdfb.c | 2 |
4 files changed, 8 insertions, 6 deletions
diff --git a/drivers/video/fbdev/atmel_lcdfb.c b/drivers/video/fbdev/atmel_lcdfb.c index e683b6ef9594..d36e830d6fc6 100644 --- a/drivers/video/fbdev/atmel_lcdfb.c +++ b/drivers/video/fbdev/atmel_lcdfb.c | |||
| @@ -1057,6 +1057,7 @@ static int atmel_lcdfb_of_init(struct atmel_lcdfb_info *sinfo) | |||
| 1057 | goto put_display_node; | 1057 | goto put_display_node; |
| 1058 | } | 1058 | } |
| 1059 | 1059 | ||
| 1060 | INIT_LIST_HEAD(&pdata->pwr_gpios); | ||
| 1060 | ret = -ENOMEM; | 1061 | ret = -ENOMEM; |
| 1061 | for (i = 0; i < of_gpio_named_count(display_np, "atmel,power-control-gpio"); i++) { | 1062 | for (i = 0; i < of_gpio_named_count(display_np, "atmel,power-control-gpio"); i++) { |
| 1062 | gpio = of_get_named_gpio_flags(display_np, "atmel,power-control-gpio", | 1063 | gpio = of_get_named_gpio_flags(display_np, "atmel,power-control-gpio", |
| @@ -1082,6 +1083,7 @@ static int atmel_lcdfb_of_init(struct atmel_lcdfb_info *sinfo) | |||
| 1082 | dev_err(dev, "set direction output gpio %d failed\n", gpio); | 1083 | dev_err(dev, "set direction output gpio %d failed\n", gpio); |
| 1083 | goto put_display_node; | 1084 | goto put_display_node; |
| 1084 | } | 1085 | } |
| 1086 | list_add(&og->list, &pdata->pwr_gpios); | ||
| 1085 | } | 1087 | } |
| 1086 | 1088 | ||
| 1087 | if (is_gpio_power) | 1089 | if (is_gpio_power) |
diff --git a/drivers/video/fbdev/bfin_adv7393fb.c b/drivers/video/fbdev/bfin_adv7393fb.c index a54f7f7d763b..8fe41caac38e 100644 --- a/drivers/video/fbdev/bfin_adv7393fb.c +++ b/drivers/video/fbdev/bfin_adv7393fb.c | |||
| @@ -408,7 +408,7 @@ static int bfin_adv7393_fb_probe(struct i2c_client *client, | |||
| 408 | /* Workaround "PPI Does Not Start Properly In Specific Mode" */ | 408 | /* Workaround "PPI Does Not Start Properly In Specific Mode" */ |
| 409 | if (ANOMALY_05000400) { | 409 | if (ANOMALY_05000400) { |
| 410 | ret = gpio_request_one(P_IDENT(P_PPI0_FS3), GPIOF_OUT_INIT_LOW, | 410 | ret = gpio_request_one(P_IDENT(P_PPI0_FS3), GPIOF_OUT_INIT_LOW, |
| 411 | "PPI0_FS3") | 411 | "PPI0_FS3"); |
| 412 | if (ret) { | 412 | if (ret) { |
| 413 | dev_err(&client->dev, "PPI0_FS3 GPIO request failed\n"); | 413 | dev_err(&client->dev, "PPI0_FS3 GPIO request failed\n"); |
| 414 | ret = -EBUSY; | 414 | ret = -EBUSY; |
diff --git a/drivers/video/fbdev/omap2/dss/omapdss-boot-init.c b/drivers/video/fbdev/omap2/dss/omapdss-boot-init.c index 99af9e88b2d8..2f0822ee3ff9 100644 --- a/drivers/video/fbdev/omap2/dss/omapdss-boot-init.c +++ b/drivers/video/fbdev/omap2/dss/omapdss-boot-init.c | |||
| @@ -121,9 +121,11 @@ static void __init omapdss_add_to_list(struct device_node *node, bool root) | |||
| 121 | { | 121 | { |
| 122 | struct dss_conv_node *n = kmalloc(sizeof(struct dss_conv_node), | 122 | struct dss_conv_node *n = kmalloc(sizeof(struct dss_conv_node), |
| 123 | GFP_KERNEL); | 123 | GFP_KERNEL); |
| 124 | n->node = node; | 124 | if (n) { |
| 125 | n->root = root; | 125 | n->node = node; |
| 126 | list_add(&n->list, &dss_conv_list); | 126 | n->root = root; |
| 127 | list_add(&n->list, &dss_conv_list); | ||
| 128 | } | ||
| 127 | } | 129 | } |
| 128 | 130 | ||
| 129 | static bool __init omapdss_list_contains(const struct device_node *node) | 131 | static bool __init omapdss_list_contains(const struct device_node *node) |
diff --git a/drivers/video/fbdev/vt8500lcdfb.c b/drivers/video/fbdev/vt8500lcdfb.c index a8f2b280f796..a1134c3f6c11 100644 --- a/drivers/video/fbdev/vt8500lcdfb.c +++ b/drivers/video/fbdev/vt8500lcdfb.c | |||
| @@ -474,8 +474,6 @@ static int vt8500lcd_remove(struct platform_device *pdev) | |||
| 474 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 474 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
| 475 | release_mem_region(res->start, resource_size(res)); | 475 | release_mem_region(res->start, resource_size(res)); |
| 476 | 476 | ||
| 477 | kfree(fbi); | ||
| 478 | |||
| 479 | return 0; | 477 | return 0; |
| 480 | } | 478 | } |
| 481 | 479 | ||
