FROMLIST: drm/rockchip: dw_hdmi: Don't call platform_set_drvdata()
authorDouglas Anderson <dianders@chromium.org>
Mon, 7 Mar 2016 22:00:53 +0000 (14:00 -0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 30 Mar 2016 02:03:29 +0000 (10:03 +0800)
commit7dcfa54210cddc4188b94ccc8102ff4019bf30e3
treefe1b8b11c74694e4144d160e350d7dc8be658616
parentd8445394f6806277f1b07caaee832dfa455a09ba
FROMLIST: drm/rockchip: dw_hdmi: Don't call platform_set_drvdata()

The Rockchip dw_hdmi driver just called platform_set_drvdata() to get
your hopes up that maybe, somehow, you'd be able to retrieve the 'struct
rockchip_hdmi' from a pointer to the 'struct device'.  You can't.  When
we call dw_hdmi_bind() the main driver calls dev_set_drvdata(), which
clobbers our setting.

Let's just remove the platform_set_drvdata() to avoid dashing people's
hopes.

(am from https://patchwork.kernel.org/patch/8523401/)

Change-Id: I28c4dcff37f6800b841e0492eb2613dcff7d1c81
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c