From patchwork Mon May 13 09:24:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2557351 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 3E49F3FD4E for ; Mon, 13 May 2013 09:37:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751709Ab3EMJhd (ORCPT ); Mon, 13 May 2013 05:37:33 -0400 Received: from mail-pb0-f42.google.com ([209.85.160.42]:57626 "EHLO mail-pb0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751120Ab3EMJhc (ORCPT ); Mon, 13 May 2013 05:37:32 -0400 Received: by mail-pb0-f42.google.com with SMTP id up7so4318378pbc.15 for ; Mon, 13 May 2013 02:37:32 -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:in-reply-to :references:x-gm-message-state; bh=3sZpwkdOHgRKCEPoNG7/GbbYgQ8xspOn/0rZkFOaHNg=; b=Rq+QF5AeZX93jAfxOb/y1UPzbElPe5eF8yn7X9jEEGnDFmhlpt2vHPtt2jH/9CfPRB DDl408IZK1s+jUFelkcMiUefsaEWRQrZ6FOgXzgpesPrKpWRhEvbziMbRyE5cH83be6s YQPEEGFuNjpTWcdg//UhK76+5AiCBkc672VH1byTFj60h+3Vm1ASVnedzXUp0Kcf6LNe E5D7mSFxepSdCFtgVy7R2jko5dUUDUedVsJ+qPGpkmSeF9PikSNhDoqk689JFBt74IxJ rNzoPM4yMEIs8xPEnWvROjb7eufXJXG+pwk/PxBb5gonLbbBGr0kNGJe5Lx3/4Qeufip TCYA== X-Received: by 10.66.230.228 with SMTP id tb4mr3295891pac.160.1368437852115; Mon, 13 May 2013 02:37:32 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id rn7sm2470016pbc.12.2013.05.13.02.37.29 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 13 May 2013 02:37:31 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: mchehab@redhat.com, sachin.kamat@linaro.org Subject: [PATCH 2/2] [media] rc: gpio-ir-recv: Remove redundant platform_set_drvdata() Date: Mon, 13 May 2013 14:54:08 +0530 Message-Id: <1368437048-13172-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1368437048-13172-1-git-send-email-sachin.kamat@linaro.org> References: <1368437048-13172-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQmXiu2K56b9TZa+J8ToDeW+h5MgzrQLQibDCKbP21lwBTB3Ty+2QD3S2R3sMG1o0C+RSFa8 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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 --- drivers/media/rc/gpio-ir-recv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/rc/gpio-ir-recv.c b/drivers/media/rc/gpio-ir-recv.c index 8b82ae9..07aacfa 100644 --- a/drivers/media/rc/gpio-ir-recv.c +++ b/drivers/media/rc/gpio-ir-recv.c @@ -178,7 +178,6 @@ static int gpio_ir_recv_probe(struct platform_device *pdev) return 0; err_request_irq: - platform_set_drvdata(pdev, NULL); rc_unregister_device(rcdev); rcdev = NULL; err_register_rc_device: @@ -196,7 +195,6 @@ static int gpio_ir_recv_remove(struct platform_device *pdev) struct gpio_rc_dev *gpio_dev = platform_get_drvdata(pdev); free_irq(gpio_to_irq(gpio_dev->gpio_nr), gpio_dev); - platform_set_drvdata(pdev, NULL); rc_unregister_device(gpio_dev->rcdev); gpio_free(gpio_dev->gpio_nr); kfree(gpio_dev);