From patchwork Mon Apr 22 14:03:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 2472081 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 71CFD3FCA5 for ; Mon, 22 Apr 2013 14:07:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754186Ab3DVOHR (ORCPT ); Mon, 22 Apr 2013 10:07:17 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:23935 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752531Ab3DVOHQ (ORCPT ); Mon, 22 Apr 2013 10:07:16 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MLN00JMYTW396L0@mailout3.samsung.com> for linux-media@vger.kernel.org; Mon, 22 Apr 2013 23:07:15 +0900 (KST) X-AuditID: cbfee61a-b7f156d000002a55-8e-5175441390df Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 4F.A7.10837.31445715; Mon, 22 Apr 2013 23:07:15 +0900 (KST) Received: from amdc1344.digital.local ([106.116.147.32]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MLN004L3TQD2V50@mmp1.samsung.com>; Mon, 22 Apr 2013 23:07:15 +0900 (KST) From: Sylwester Nawrocki To: linux-media@vger.kernel.org Cc: kyungmin.park@samsung.com, sw0312.kim@samsung.com, a.hajda@samsung.com, Sylwester Nawrocki Subject: [PATCH 11/12] exynos4-is: Change function call order in fimc_is_module_exit() Date: Mon, 22 Apr 2013 16:03:46 +0200 Message-id: <1366639427-14253-12-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1366639427-14253-1-git-send-email-s.nawrocki@samsung.com> References: <1366639427-14253-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrJJMWRmVeSWpSXmKPExsVy+t9jAV1hl9JAgxktlha31p1jtTjb9Ibd omfDVlaLw2/aWS1mTH7J5sDq0bdlFaPH501yAUxRXDYpqTmZZalF+nYJXBlH9sxgKVjKXnH+ 1xvGBsaNbF2MnBwSAiYSXb+eQ9liEhfurQeyuTiEBBYxSnz++J4dwulgkvh9vYkFpIpNwFCi 92gfI4gtIiAv8aT3Blg3s0ClxIa1T5m7GDk4hAUiJBobeEDCLAKqEi0rFjCB2LwC7hJHP3xh AymREFCQmDPJBiTMCRT+suQGK4gtJOAmsWnlDfYJjLwLGBlWMYqmFiQXFCel5xrqFSfmFpfm pesl5+duYgQHyDOpHYwrGywOMQpwMCrx8K40Kw0UYk0sK67MPcQowcGsJMJ793VJoBBvSmJl VWpRfnxRaU5q8SFGaQ4WJXHeA63WgUIC6YklqdmpqQWpRTBZJg5OqQZGxvr7X5l8z6QXb75a Ya+S7JvHJc/3dN6N4M/7ZIrSK9c25S23Ei1Uzd/mca9FIOXU5UOLp5vqPWv3epeVI9w7ic08 Rp3Pxuv6WrvfjsJ7u2RlGD50Xe+OZ08rm89hdvWR7ueOuJlxOgvNqiuvfD/j73tT/eXXoyf8 Hr9epbCj8Hr9i4cKLJlKLMUZiYZazEXFiQCHmeBIDAIAAA== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Due to hardware dependencies (clocks/power domain) the I2C bus controller needs to be unregistered before fimc-is. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- drivers/media/platform/exynos4-is/fimc-is.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/exynos4-is/fimc-is.c b/drivers/media/platform/exynos4-is/fimc-is.c index ca72b02..5e89077 100644 --- a/drivers/media/platform/exynos4-is/fimc-is.c +++ b/drivers/media/platform/exynos4-is/fimc-is.c @@ -995,9 +995,9 @@ err_sens: static void fimc_is_module_exit(void) { - platform_driver_unregister(&fimc_is_driver); - fimc_is_unregister_i2c_driver(); fimc_is_unregister_sensor_driver(); + fimc_is_unregister_i2c_driver(); + platform_driver_unregister(&fimc_is_driver); } module_init(fimc_is_module_init);