diff options
| -rw-r--r-- | drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 2 | ||||
| -rw-r--r-- | drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c | 3 | ||||
| -rw-r--r-- | drivers/gpu/drm/omapdrm/omap_connector.c | 4 | ||||
| -rw-r--r-- | drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | 4 | ||||
| -rw-r--r-- | drivers/gpu/drm/omapdrm/omap_encoder.c | 2 |
5 files changed, 7 insertions, 8 deletions
diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c b/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c index dc026a843712..a2bb855a2851 100644 --- a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c +++ b/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | |||
| @@ -1253,7 +1253,7 @@ static int dsicm_probe(struct platform_device *pdev) | |||
| 1253 | dsicm_hw_reset(ddata); | 1253 | dsicm_hw_reset(ddata); |
| 1254 | 1254 | ||
| 1255 | if (ddata->use_dsi_backlight) { | 1255 | if (ddata->use_dsi_backlight) { |
| 1256 | memset(&props, 0, sizeof(struct backlight_properties)); | 1256 | memset(&props, 0, sizeof(props)); |
| 1257 | props.max_brightness = 255; | 1257 | props.max_brightness = 255; |
| 1258 | 1258 | ||
| 1259 | props.type = BACKLIGHT_RAW; | 1259 | props.type = BACKLIGHT_RAW; |
diff --git a/drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c b/drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c index 136d30484d02..bf626acae271 100644 --- a/drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c +++ b/drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c | |||
| @@ -119,8 +119,7 @@ static void __init omapdss_omapify_node(struct device_node *node) | |||
| 119 | 119 | ||
| 120 | static void __init omapdss_add_to_list(struct device_node *node, bool root) | 120 | 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(*n), GFP_KERNEL); |
| 123 | GFP_KERNEL); | ||
| 124 | if (n) { | 123 | if (n) { |
| 125 | n->node = node; | 124 | n->node = node; |
| 126 | n->root = root; | 125 | n->root = root; |
diff --git a/drivers/gpu/drm/omapdrm/omap_connector.c b/drivers/gpu/drm/omapdrm/omap_connector.c index 2580e8673908..691cffebb76e 100644 --- a/drivers/gpu/drm/omapdrm/omap_connector.c +++ b/drivers/gpu/drm/omapdrm/omap_connector.c | |||
| @@ -162,7 +162,7 @@ static int omap_connector_mode_valid(struct drm_connector *connector, | |||
| 162 | 162 | ||
| 163 | dssdrv->get_timings(dssdev, &t); | 163 | dssdrv->get_timings(dssdev, &t); |
| 164 | 164 | ||
| 165 | if (memcmp(&vm, &t, sizeof(struct videomode))) | 165 | if (memcmp(&vm, &t, sizeof(vm))) |
| 166 | r = -EINVAL; | 166 | r = -EINVAL; |
| 167 | else | 167 | else |
| 168 | r = 0; | 168 | r = 0; |
| @@ -217,7 +217,7 @@ struct drm_connector *omap_connector_init(struct drm_device *dev, | |||
| 217 | 217 | ||
| 218 | omap_dss_get_device(dssdev); | 218 | omap_dss_get_device(dssdev); |
| 219 | 219 | ||
| 220 | omap_connector = kzalloc(sizeof(struct omap_connector), GFP_KERNEL); | 220 | omap_connector = kzalloc(sizeof(*omap_connector), GFP_KERNEL); |
| 221 | if (!omap_connector) | 221 | if (!omap_connector) |
| 222 | goto fail; | 222 | goto fail; |
| 223 | 223 | ||
diff --git a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c index 4ceed7a9762f..3cab06661a08 100644 --- a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +++ b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | |||
| @@ -224,7 +224,7 @@ static void dmm_txn_append(struct dmm_txn *txn, struct pat_area *area, | |||
| 224 | int rows = (1 + area->y1 - area->y0); | 224 | int rows = (1 + area->y1 - area->y0); |
| 225 | int i = columns*rows; | 225 | int i = columns*rows; |
| 226 | 226 | ||
| 227 | pat = alloc_dma(txn, sizeof(struct pat), &pat_pa); | 227 | pat = alloc_dma(txn, sizeof(*pat), &pat_pa); |
| 228 | 228 | ||
| 229 | if (txn->last_pat) | 229 | if (txn->last_pat) |
| 230 | txn->last_pat->next_pa = (uint32_t)pat_pa; | 230 | txn->last_pat->next_pa = (uint32_t)pat_pa; |
| @@ -735,7 +735,7 @@ static int omap_dmm_probe(struct platform_device *dev) | |||
| 735 | 735 | ||
| 736 | /* alloc engines */ | 736 | /* alloc engines */ |
| 737 | omap_dmm->engines = kcalloc(omap_dmm->num_engines, | 737 | omap_dmm->engines = kcalloc(omap_dmm->num_engines, |
| 738 | sizeof(struct refill_engine), GFP_KERNEL); | 738 | sizeof(*omap_dmm->engines), GFP_KERNEL); |
| 739 | if (!omap_dmm->engines) { | 739 | if (!omap_dmm->engines) { |
| 740 | ret = -ENOMEM; | 740 | ret = -ENOMEM; |
| 741 | goto fail; | 741 | goto fail; |
diff --git a/drivers/gpu/drm/omapdrm/omap_encoder.c b/drivers/gpu/drm/omapdrm/omap_encoder.c index a20f30039aee..86c977b7189a 100644 --- a/drivers/gpu/drm/omapdrm/omap_encoder.c +++ b/drivers/gpu/drm/omapdrm/omap_encoder.c | |||
| @@ -117,7 +117,7 @@ static int omap_encoder_update(struct drm_encoder *encoder, | |||
| 117 | 117 | ||
| 118 | dssdrv->get_timings(dssdev, &t); | 118 | dssdrv->get_timings(dssdev, &t); |
| 119 | 119 | ||
| 120 | if (memcmp(vm, &t, sizeof(struct videomode))) | 120 | if (memcmp(vm, &t, sizeof(*vm))) |
| 121 | ret = -EINVAL; | 121 | ret = -EINVAL; |
| 122 | else | 122 | else |
| 123 | ret = 0; | 123 | ret = 0; |
