From patchwork Fri Aug 9 19:24:06 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: 2842089 Return-Path: X-Original-To: patchwork-linux-media@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 ACE04BF546 for ; Fri, 9 Aug 2013 19:25:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E206620263 for ; Fri, 9 Aug 2013 19:25:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1107520164 for ; Fri, 9 Aug 2013 19:25:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030852Ab3HITZe (ORCPT ); Fri, 9 Aug 2013 15:25:34 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:24109 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030789Ab3HITZc (ORCPT ); Fri, 9 Aug 2013 15:25:32 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MRA00L8Y3AFU320@mailout2.samsung.com>; Sat, 10 Aug 2013 04:25:31 +0900 (KST) X-AuditID: cbfee61a-b7f196d000007dfa-18-5205422bb3f2 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 51.F9.32250.B2245025; Sat, 10 Aug 2013 04:25:31 +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 <0MRA006PU38GMW10@mmp1.samsung.com>; Sat, 10 Aug 2013 04:25:31 +0900 (KST) From: Sylwester Nawrocki To: linux-media@vger.kernel.org Cc: a.hajda@samsung.com, arun.kk@samsung.com, linux-samsung-soc@vger.kernel.org, Sylwester Nawrocki , Kyungmin Park Subject: [PATCH 04/10] exynos4-is: Initialize the ISP subdev sd->owner field Date: Fri, 09 Aug 2013 21:24:06 +0200 Message-id: <1376076252-30150-4-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1376076252-30150-1-git-send-email-s.nawrocki@samsung.com> References: <1376076122-29963-1-git-send-email-s.nawrocki@samsung.com> <1376076252-30150-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPJMWRmVeSWpSXmKPExsVy+t9jAV1tJ9Ygg/9TeSxurTvHavHx1G1W i7NNb9gtejZsZbWYcX4fk8XhN+2sDmwefVtWMXp83iQXwBTFZZOSmpNZllqkb5fAlXH47yOW gi72iks/9rE3ME5k62Lk5JAQMJGY2tfCCmGLSVy4tx4ozsUhJLCIUWLJjJesEE4Hk8TF5zuY QKrYBAwleo/2MYLYIgLyEk96b4B1MAusZZRY/PUJ2FhhAR+JA6ves3cxcnCwCKhKfDwgDhLm FXCTuHp1OyNIWEJAQWLOJBuQMKeAu8SkR7PBOoUEmhkl3nxQnsDIu4CRYRWjaGpBckFxUnqu oV5xYm5xaV66XnJ+7iZGcLA8k9rBuLLB4hCjAAejEg/vhF8sQUKsiWXFlbmHGCU4mJVEeF9z sQYJ8aYkVlalFuXHF5XmpBYfYpTmYFES5z3Qah0oJJCeWJKanZpakFoEk2Xi4JRqYDS7YX6+ 6uWxZw2p6bnrqhV4o46cbVL5G3n79H6V7hnpn6rZLnyWmNBQwHsx6kfj65s7HgptC99yN7N4 nxmbcHmM0om7dk/0OzXcRKNf3vB5PCGckymq4TiL+cp/al8lDmlwvP8ymSVtItuG9PlTPp4/ tP79ZjGuR9whG8/9lVVQspuwOTQhUVSJpTgj0VCLuag4EQDkI5uCEgIAAA== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 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 Set the subdevs owner module so the exynos4_fimc_is module cannot be unloaded when the FIMC-IS driver is in use. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- drivers/media/platform/exynos4-is/fimc-isp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/exynos4-is/fimc-isp.c b/drivers/media/platform/exynos4-is/fimc-isp.c index cf520a7..d2e6cba 100644 --- a/drivers/media/platform/exynos4-is/fimc-isp.c +++ b/drivers/media/platform/exynos4-is/fimc-isp.c @@ -672,6 +672,8 @@ int fimc_isp_subdev_create(struct fimc_isp *isp) mutex_init(&isp->subdev_lock); v4l2_subdev_init(sd, &fimc_is_subdev_ops); + + sd->owner = THIS_MODULE; sd->grp_id = GRP_ID_FIMC_IS; sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; snprintf(sd->name, sizeof(sd->name), "FIMC-IS-ISP");