drm/sun4i: dsi: Remove unused drv from driver context
This member is never used, so remove it.
Fixes: 133add5b5a
("drm/sun4i: Add Allwinner A31 MIPI-DSI controller support")
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20200211072858.30784-1-samuel@sholland.org
This commit is contained in:
parent
2c77ae22ff
commit
dc84f09151
|
@ -27,7 +27,6 @@
|
||||||
#include <drm/drm_probe_helper.h>
|
#include <drm/drm_probe_helper.h>
|
||||||
|
|
||||||
#include "sun4i_crtc.h"
|
#include "sun4i_crtc.h"
|
||||||
#include "sun4i_drv.h"
|
|
||||||
#include "sun4i_tcon.h"
|
#include "sun4i_tcon.h"
|
||||||
#include "sun6i_mipi_dsi.h"
|
#include "sun6i_mipi_dsi.h"
|
||||||
|
|
||||||
|
@ -1022,15 +1021,12 @@ static int sun6i_dsi_bind(struct device *dev, struct device *master,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
struct drm_device *drm = data;
|
struct drm_device *drm = data;
|
||||||
struct sun4i_drv *drv = drm->dev_private;
|
|
||||||
struct sun6i_dsi *dsi = dev_get_drvdata(dev);
|
struct sun6i_dsi *dsi = dev_get_drvdata(dev);
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (!dsi->panel)
|
if (!dsi->panel)
|
||||||
return -EPROBE_DEFER;
|
return -EPROBE_DEFER;
|
||||||
|
|
||||||
dsi->drv = drv;
|
|
||||||
|
|
||||||
drm_encoder_helper_add(&dsi->encoder,
|
drm_encoder_helper_add(&dsi->encoder,
|
||||||
&sun6i_dsi_enc_helper_funcs);
|
&sun6i_dsi_enc_helper_funcs);
|
||||||
ret = drm_encoder_init(drm,
|
ret = drm_encoder_init(drm,
|
||||||
|
|
|
@ -28,7 +28,6 @@ struct sun6i_dsi {
|
||||||
struct phy *dphy;
|
struct phy *dphy;
|
||||||
|
|
||||||
struct device *dev;
|
struct device *dev;
|
||||||
struct sun4i_drv *drv;
|
|
||||||
struct mipi_dsi_device *device;
|
struct mipi_dsi_device *device;
|
||||||
struct drm_panel *panel;
|
struct drm_panel *panel;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue