From patchwork Mon May 13 09:17:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 18390 X-Patchwork-Delegate: laurent.pinchart@ideasonboard.com Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1Ubp9Q-0000u2-AD; Mon, 13 May 2013 11:34:36 +0200 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.72/mailfrontend-7) with esmtp id 1Ubp99-0000l6-15; Mon, 13 May 2013 11:34:35 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751167Ab3EMJbP (ORCPT + 1 other); Mon, 13 May 2013 05:31:15 -0400 Received: from mail-pd0-f174.google.com ([209.85.192.174]:58110 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751022Ab3EMJbP (ORCPT ); Mon, 13 May 2013 05:31:15 -0400 Received: by mail-pd0-f174.google.com with SMTP id u10so4256236pdi.5 for ; Mon, 13 May 2013 02:31:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=qAo9erkIbNCQ2/TQYabZMfiM1xDkp4Nm/E4wRuVlOEE=; b=cAXCa+tcWu1UC1cb7G+H8Uu6DhdlgHJZuxo1JcilEJQqubppjk4qDWyT8eepbn/YZg NEiznNQhGAeHQ1JCqwTaBDSIsI2dTzyzJxOojLK7LcUnLKtdtWmcy5JqTZmBWuKxRd01 FXLfc/aGfpIPM3pXn0KnIZiDC2REmRCTSMfsWy0U5oP5uMrFstQT8tluHjorJuD/jW2b 6XbD2HCmJuyq58e3x10OicaV2MiydYuhq6R296oY0rWLKSmgJ8W2M6tQhM5yI07LUNEZ g1fmP9nUBOk+DEo3IvcohE9MQXAQua5HDnEtoCR9U8cBWoBZkuO+9wG8SUdi/8WFTzCJ EbQg== X-Received: by 10.68.36.197 with SMTP id s5mr28602619pbj.23.1368437474609; Mon, 13 May 2013 02:31:14 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id qh4sm14265271pac.8.2013.05.13.02.31.11 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 13 May 2013 02:31:13 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: sachin.kamat@linaro.org, Laurent Pinchart , Sakari Ailus Subject: [PATCH] [media] omap3isp: Remove redundant platform_set_drvdata() Date: Mon, 13 May 2013 14:47:54 +0530 Message-Id: <1368436674-11876-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQky8vGVie+nX2CAl7SowF1rR0Ky1sX3cOYCAEEJTqssb+fsDXmobZNyzmeA/H7AY+ahpRcM Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2013.5.13.91522 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' MULTIPLE_RCPTS 0.1, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, BODY_SIZE_900_999 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __MULTIPLE_RCPTS_CC_X2 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS , __YOUTUBE_RCVD 0' Commit 0998d06310 (device-core: Ensure drvdata = NULL when no driver is bound) removes the need to set driver data field to NULL. Signed-off-by: Sachin Kamat Cc: Laurent Pinchart Cc: Sakari Ailus Acked-by: Sakari Ailus --- drivers/media/platform/omap3isp/isp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/platform/omap3isp/isp.c b/drivers/media/platform/omap3isp/isp.c index 1d7dbd5..4afa421 100644 --- a/drivers/media/platform/omap3isp/isp.c +++ b/drivers/media/platform/omap3isp/isp.c @@ -2291,8 +2291,6 @@ error_isp: isp_xclk_cleanup(isp); omap3isp_put(isp); error: - platform_set_drvdata(pdev, NULL); - mutex_destroy(&isp->isp_mutex); return ret;