From patchwork Mon Nov 24 17:19:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 5368541 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 76BEB9F39D for ; Mon, 24 Nov 2014 17:20:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3124E20435 for ; Mon, 24 Nov 2014 17:20:04 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id F0BC22040F for ; Mon, 24 Nov 2014 17:20:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 490CF6E3CC; Mon, 24 Nov 2014 09:20:02 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qg0-f50.google.com (mail-qg0-f50.google.com [209.85.192.50]) by gabe.freedesktop.org (Postfix) with ESMTP id 224486E3CC for ; Mon, 24 Nov 2014 09:20:01 -0800 (PST) Received: by mail-qg0-f50.google.com with SMTP id i50so3813093qgf.23 for ; Mon, 24 Nov 2014 09:20:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id; bh=qgHRvJZeMtPlS2d44FQqxeqtEF3ruRpea4ctQwWsWog=; b=kD8Jy9YOWm9XOwojclnslMdz1qv/m1Tt9LdkLbrtMWYpsE22mpjKKUNblMCdgWSy1D mRwfxvASne/T3O1R1uU8INSzZ3Qn8+2SGoORNxzbpsGQCtq+fOZDFsJgZTAqhrGQ7GFH hmcLdaaOQY9ATGWIYQMgjD9FM4HqhYwXs8pqkgGRwK2MyFdnffr6tiQLzuO8UHbcMFtm C6FtMDtZXfEZtwQJccHTj3ZzGAfgzXn7Cb080TjLfCHeic0qgVPPc5hx40+j/kkOn1Wk iYlwkCgmCYYz83AtEgWINRJRn3QoIrBIFN+bR8wmoDARGNh2ab4sTsXtQBMgIwEGitno wnVg== X-Received: by 10.140.102.169 with SMTP id w38mr29854879qge.95.1416849596428; Mon, 24 Nov 2014 09:19:56 -0800 (PST) Received: from localhost.localdomain ([187.34.44.229]) by mx.google.com with ESMTPSA id x17sm12376773qae.11.2014.11.24.09.19.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Nov 2014 09:19:55 -0800 (PST) From: Gustavo Padovan To: linux-samsung-soc@vger.kernel.org Subject: [PATCH] drm/exynos: Fix exynos_dpi_remove() parameter Date: Mon, 24 Nov 2014 15:19:49 -0200 Message-Id: <1416849589-11766-1-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 1.9.3 Cc: Gustavo Padovan , dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 From: Gustavo Padovan exynos_dpi_remove() should receive a exynos_drm_display but when DRM_EXYNOS_DPI was disabled it was receiving a struct device resulting in ia compiler warning. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/exynos/exynos_drm_drv.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h index 2e4e91b..2e50634 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h @@ -307,7 +307,10 @@ int exynos_dpi_remove(struct exynos_drm_display *display); #else static inline struct exynos_drm_display * exynos_dpi_probe(struct device *dev) { return NULL; } -static inline int exynos_dpi_remove(struct device *dev) { return 0; } +static inline int exynos_dpi_remove(struct exynos_drm_display *display) +{ + return 0; +} #endif #ifdef CONFIG_DRM_EXYNOS_VIDI