Message ID | 1457388054-23077-5-git-send-email-dianders@chromium.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A121BC0553 for <patchwork-linux-rockchip@patchwork.kernel.org>; Mon, 7 Mar 2016 22:02:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BBCC22026F for <patchwork-linux-rockchip@patchwork.kernel.org>; Mon, 7 Mar 2016 22:02:24 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AFC7720263 for <patchwork-linux-rockchip@patchwork.kernel.org>; Mon, 7 Mar 2016 22:02:23 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ad3EN-0008Tq-1K; Mon, 07 Mar 2016 22:02:23 +0000 Received: from mail-pf0-x22b.google.com ([2607:f8b0:400e:c00::22b]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ad3Dl-0007hp-2t for linux-rockchip@lists.infradead.org; Mon, 07 Mar 2016 22:01:47 +0000 Received: by mail-pf0-x22b.google.com with SMTP id 63so86810553pfe.3 for <linux-rockchip@lists.infradead.org>; Mon, 07 Mar 2016 14:01:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VqRaS/CAydomtYaQwqXoHEXCd3z2ryFoPxcM2HJ32uI=; b=Y5VW73mxsMfI96fDv2qU9ce28dfRT1travrzW3QjJ6Lq32XNOvh5S7znJzL1vKtRJb QuL5L7oW5vaRHrBNXPac+2CfAKI68nwXE/gfjUuoQR3lw61RjrLJJswc+Z++45wH0dVF 59IjjX+VC5kCviGPRtQaDYPO2LQbSpyLBkVA4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VqRaS/CAydomtYaQwqXoHEXCd3z2ryFoPxcM2HJ32uI=; b=g9EO/Xdxmy0tNCVr+fta8AOCuAIAueXWOa6E8hUd0WkSojauNjPCAdSxb/rLAHAsVA /a8ylfhmkoDnbbZv2FYZaNkQZqyADrGglpFAIS+6I3ls6mf3ptZDNUqkRaoanY8xrefV h4xkw6kwRegBT4oMU1ojzpP9tqXWMzi3FCAQAn6MIpdpqehVkg5KidP4xeuWzqhmCaVq +6birZ/ekigbTeuNd1j68XmXHT2cJ3dsgOYOf5shi6hyMDep671jJYGBEKYjcN3d2gVS fk0zdO3YTn78B5fMJUBELWdYAIiw0NDsjZVzELEu6Z7R/R7glgeeCFagvmrmcZdqAvSp XduA== X-Gm-Message-State: AD7BkJItdWcHMG0QArOLDZ3TbxPCtVsRBGg6EzYklfNEev3hcOeW+L3HJeHpKrOC+GiePQ== X-Received: by 10.98.33.67 with SMTP id h64mr36222768pfh.157.1457388084248; Mon, 07 Mar 2016 14:01:24 -0800 (PST) Received: from tictac.mtv.corp.google.com ([172.22.65.76]) by smtp.gmail.com with ESMTPSA id p26sm19964195pfi.84.2016.03.07.14.01.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Mar 2016 14:01:23 -0800 (PST) From: Douglas Anderson <dianders@chromium.org> To: Mark Yao <mark.yao@rock-chips.com>, David Airlie <airlied@linux.ie>, linux@arm.linux.org.uk, Heiko Stuebner <heiko@sntech.de> Subject: [PATCH v2 5/5] drm/imx: dw_hdmi: Don't call platform_set_drvdata() Date: Mon, 7 Mar 2016 14:00:54 -0800 Message-Id: <1457388054-23077-5-git-send-email-dianders@chromium.org> X-Mailer: git-send-email 2.7.0.rc3.207.g0ac5344 In-Reply-To: <1457388054-23077-1-git-send-email-dianders@chromium.org> References: <1457388054-23077-1-git-send-email-dianders@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160307_140145_454575_DE7EF4D2 X-CRM114-Status: UNSURE ( 9.36 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms <linux-rockchip.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-rockchip>, <mailto:linux-rockchip-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-rockchip/> List-Post: <mailto:linux-rockchip@lists.infradead.org> List-Help: <mailto:linux-rockchip-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-rockchip>, <mailto:linux-rockchip-request@lists.infradead.org?subject=subscribe> Cc: john@keeping.me.uk, Douglas Anderson <dianders@chromium.org>, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Daniel Kurtz <djkurtz@chromium.org>, p.zabel@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" <linux-rockchip-bounces@lists.infradead.org> Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/imx/dw_hdmi-imx.c b/drivers/gpu/drm/imx/dw_hdmi-imx.c index c69c3142819c..a24631fdf4ad 100644 --- a/drivers/gpu/drm/imx/dw_hdmi-imx.c +++ b/drivers/gpu/drm/imx/dw_hdmi-imx.c @@ -225,8 +225,6 @@ static int dw_hdmi_imx_bind(struct device *dev, struct device *master, if (!iores) return -ENXIO; - platform_set_drvdata(pdev, hdmi); - encoder->possible_crtcs = drm_of_find_possible_crtcs(drm, dev->of_node); /* * If we failed to find the CRTC(s) which this encoder is
The IMX dw_hdmi driver just called platform_set_drvdata() to get your hopes up that maybe, somehow, you'd be able to retrieve the 'struct imx_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. Signed-off-by: Douglas Anderson <dianders@chromium.org> --- Changes in v2: - Don't call platform_set_drvdata() new for v2. drivers/gpu/drm/imx/dw_hdmi-imx.c | 2 -- 1 file changed, 2 deletions(-)