mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
drm/tilcdc: Remove unused encoder and connector tracking arrays
The num_encoders/encoders and num_connectors/connectors arrays in tilcdc_drm_private are never populated or used by the driver. Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com> Link: https://patch.msgid.link/20260123-feature_tilcdc-v5-10-5a44d2aa3f6f@bootlin.com Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
This commit is contained in:
parent
da4837fb75
commit
e9946e3a86
|
|
@ -339,8 +339,7 @@ static int tilcdc_init(const struct drm_driver *ddrv, struct device *dev)
|
|||
if (ret)
|
||||
goto unregister_cpufreq_notif;
|
||||
|
||||
if (!priv->external_connector &&
|
||||
((priv->num_encoders == 0) || (priv->num_connectors == 0))) {
|
||||
if (!priv->external_connector) {
|
||||
dev_err(dev, "no encoders/connectors found\n");
|
||||
ret = -EPROBE_DEFER;
|
||||
goto unregister_cpufreq_notif;
|
||||
|
|
|
|||
|
|
@ -75,12 +75,6 @@ struct tilcdc_drm_private {
|
|||
|
||||
struct drm_crtc *crtc;
|
||||
|
||||
unsigned int num_encoders;
|
||||
struct drm_encoder *encoders[8];
|
||||
|
||||
unsigned int num_connectors;
|
||||
struct drm_connector *connectors[8];
|
||||
|
||||
struct drm_encoder *external_encoder;
|
||||
struct drm_connector *external_connector;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user