From patchwork Fri May 9 10:46:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seung-Woo Kim X-Patchwork-Id: 4141461 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A10D7BFF02 for ; Fri, 9 May 2014 10:47:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BACED20263 for ; Fri, 9 May 2014 10:47:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AE2BF20212 for ; Fri, 9 May 2014 10:47:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755281AbaEIKr0 (ORCPT ); Fri, 9 May 2014 06:47:26 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:63628 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751945AbaEIKrX (ORCPT ); Fri, 9 May 2014 06:47:23 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N5A00B0ZZAX4980@mailout3.samsung.com> for linux-samsung-soc@vger.kernel.org; Fri, 09 May 2014 19:47:21 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.114]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 3D.46.11496.932BC635; Fri, 09 May 2014 19:47:21 +0900 (KST) X-AuditID: cbfee691-b7f3e6d000002ce8-3d-536cb239c7ed Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 36.4F.27725.932BC635; Fri, 09 May 2014 19:47:21 +0900 (KST) Received: from localhost.localdomain ([10.252.83.121]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N5A008PAZABF650@mmp2.samsung.com>; Fri, 09 May 2014 19:47:21 +0900 (KST) From: Seung-Woo Kim To: dri-devel@lists.freedesktop.org, inki.dae@samsung.com Cc: airlied@linux.ie, linux-samsung-soc@vger.kernel.org, jy0922.shim@samsung.com, sw0312.kim@samsung.com Subject: [PATCH] drm/exynos: hdmi: remove unnecessary dedicated i2c drivers Date: Fri, 09 May 2014 19:46:59 +0900 Message-id: <1399632419-8251-1-git-send-email-sw0312.kim@samsung.com> X-Mailer: git-send-email 1.7.4.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrILMWRmVeSWpSXmKPExsWyRsSkSNdyU06wwZknqha9504yWVz5+p7N YtL9CSwWL+5dZLGYcX4fk8WMyS/ZHNg8tn97wOpxv/s4k0ffllWMHp83yQWwRHHZpKTmZJal FunbJXBlHF50n6mgS6Fi7db8BsalUl2MnBwSAiYSLe+OMEHYYhIX7q1nA7GFBJYyAiXyYGqW vDoOVMMFFJ/OKLHqdCMjhNPGJDGv/SRYN5uAjsT+Jb9ZQWwRAUuJB1t/M3cxcnAwC2RJbD+i ChIWFvCWuHC6gxnEZhFQldhw6gULiM0r4CqxY/V+ZohlChIL7r1lg7C/s0msnaAMUS8g8W3y IRaQkRICshKbDkCVS0ocXHGDZQKj4AJGhlWMoqkFyQXFSelFpnrFibnFpXnpesn5uZsYgcF5 +t+ziTsY7x+wPsSYDDRuIrOUaHI+MLjzSuINjc2MLExNTI2NzC3NSBNWEudNf5QUJCSQnliS mp2aWpBaFF9UmpNafIiRiYNTqoFRV2l/rf05tjatT2ufLdTrtfqwVLc4LmJPRFzZqjTDbh/W z6sMJ+9ZwhLwaPe29Fl3720/qiRiySyxbEangCtTRruKdO9VrzkH9Jwjg2cEZc7/XOXz+8Ca zN23wwMLwlpXfD9ZyustVrhF+cvlOa2aNrXTbDh71V3Njfls7yfsbftr8mz+od1KLMUZiYZa zEXFiQCfn68uZAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrAIsWRmVeSWpSXmKPExsVy+t9jQV3LTTnBBhdeylj0njvJZHHl63s2 i0n3J7BYvLh3kcVixvl9TBYzJr9kc2Dz2P7tAavH/e7jTB59W1YxenzeJBfAEtXAaJORmpiS WqSQmpecn5KZl26r5B0c7xxvamZgqGtoaWGupJCXmJtqq+TiE6DrlpkDtF1JoSwxpxQoFJBY XKykb4dpQmiIm64FTGOErm9IEFyPkQEaSFjDmHF40X2mgi6FirVb8xsYl0p1MXJySAiYSCx5 dZwJwhaTuHBvPVsXIxeHkMB0RolVpxsZIZw2Jol57SfBqtgEdCT2L/nNCmKLCFhKPNj6m7mL kYODWSBLYvsRVZCwsIC3xIXTHcwgNouAqsSGUy9YQGxeAVeJHav3M0MsU5BYcO8t2wRG7gWM DKsYRVMLkguKk9JzDfWKE3OLS/PS9ZLzczcxgsP/mdQOxpUNFocYBTgYlXh4X0zJDhZiTSwr rsw9xCjBwawkwvtsek6wEG9KYmVValF+fFFpTmrxIcZkoO0TmaVEk/OBsZlXEm9obGJmZGlk bmhhZGxOmrCSOO+BVutAIYH0xJLU7NTUgtQimC1MHJxSDYxrSzf8LbDsuhpc5+J27MLrHVZX p8rfz73nn+LkdOrJrFlrL4soPY4tqFv34IjFkwlf1gqFfWI9uHu+oGtn5DmdltOLMuY9F1K4 /SzCaJ/xYVXrMinVe9a/p23iufVr/ttpbOYFfwzOPbrmNm9DGtPWlqdvOiTWL7SrvPWD78mJ L1Nene9edXVRjRJLcUaioRZzUXEiAP+lPojDAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 The i2c drivers for ddc and hdmiphy are already removed from build and instead, i2c clients registered via devicetree are used. So this patch removes the unnecessary i2c drivers. Signed-off-by: Seung-Woo Kim --- drivers/gpu/drm/exynos/exynos_ddc.c | 63 ------------------------------ drivers/gpu/drm/exynos/exynos_hdmiphy.c | 65 ------------------------------- 2 files changed, 0 insertions(+), 128 deletions(-) delete mode 100644 drivers/gpu/drm/exynos/exynos_ddc.c delete mode 100644 drivers/gpu/drm/exynos/exynos_hdmiphy.c diff --git a/drivers/gpu/drm/exynos/exynos_ddc.c b/drivers/gpu/drm/exynos/exynos_ddc.c deleted file mode 100644 index 6a8c84e..0000000 --- a/drivers/gpu/drm/exynos/exynos_ddc.c +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2011 Samsung Electronics Co.Ltd - * Authors: - * Seung-Woo Kim - * Inki Dae - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. - * - */ - -#include - -#include -#include -#include - -#include "exynos_drm_drv.h" -#include "exynos_hdmi.h" - -static int s5p_ddc_probe(struct i2c_client *client, - const struct i2c_device_id *dev_id) -{ - hdmi_attach_ddc_client(client); - - dev_info(&client->adapter->dev, - "attached %s into i2c adapter successfully\n", - client->name); - - return 0; -} - -static int s5p_ddc_remove(struct i2c_client *client) -{ - dev_info(&client->adapter->dev, - "detached %s from i2c adapter successfully\n", - client->name); - - return 0; -} - -static struct of_device_id hdmiddc_match_types[] = { - { - .compatible = "samsung,exynos5-hdmiddc", - }, { - .compatible = "samsung,exynos4210-hdmiddc", - }, { - /* end node */ - } -}; - -struct i2c_driver ddc_driver = { - .driver = { - .name = "exynos-hdmiddc", - .owner = THIS_MODULE, - .of_match_table = hdmiddc_match_types, - }, - .probe = s5p_ddc_probe, - .remove = s5p_ddc_remove, - .command = NULL, -}; diff --git a/drivers/gpu/drm/exynos/exynos_hdmiphy.c b/drivers/gpu/drm/exynos/exynos_hdmiphy.c deleted file mode 100644 index 59abb14..0000000 --- a/drivers/gpu/drm/exynos/exynos_hdmiphy.c +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2011 Samsung Electronics Co.Ltd - * Authors: - * Seung-Woo Kim - * Inki Dae - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. - * - */ - -#include - -#include -#include -#include - -#include "exynos_drm_drv.h" -#include "exynos_hdmi.h" - - -static int hdmiphy_probe(struct i2c_client *client, - const struct i2c_device_id *id) -{ - hdmi_attach_hdmiphy_client(client); - - dev_info(&client->adapter->dev, "attached s5p_hdmiphy " - "into i2c adapter successfully\n"); - - return 0; -} - -static int hdmiphy_remove(struct i2c_client *client) -{ - dev_info(&client->adapter->dev, "detached s5p_hdmiphy " - "from i2c adapter successfully\n"); - - return 0; -} - -static struct of_device_id hdmiphy_match_types[] = { - { - .compatible = "samsung,exynos5-hdmiphy", - }, { - .compatible = "samsung,exynos4210-hdmiphy", - }, { - .compatible = "samsung,exynos4212-hdmiphy", - }, { - /* end node */ - } -}; - -struct i2c_driver hdmiphy_driver = { - .driver = { - .name = "exynos-hdmiphy", - .owner = THIS_MODULE, - .of_match_table = hdmiphy_match_types, - }, - .probe = hdmiphy_probe, - .remove = hdmiphy_remove, - .command = NULL, -}; -EXPORT_SYMBOL(hdmiphy_driver);