From patchwork Mon May 13 09:24:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2557341 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 233513FD4E for ; Mon, 13 May 2013 09:37:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752766Ab3EMJha (ORCPT ); Mon, 13 May 2013 05:37:30 -0400 Received: from mail-pb0-f49.google.com ([209.85.160.49]:62142 "EHLO mail-pb0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751531Ab3EMJh3 (ORCPT ); Mon, 13 May 2013 05:37:29 -0400 Received: by mail-pb0-f49.google.com with SMTP id rp2so1593249pbb.22 for ; Mon, 13 May 2013 02:37:29 -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=xOsc1mJ6g+APdhPycM2Oy6OO+LyPkUxSuJ+RW5291FU=; b=bpXE3/O9rlZHgWtiuSp34zCbRLsxpnRpHxK2R0cyWsNDrwwhLJnRx0/cdZb9KAM+PS YXJZzEW4DpPyR3wKm/VaUriYyWIGejva59s4Ou2CQzpVlhqo0zYI1N702jXwHvTzH/GI lDkkLm9caQaaoO+FVwVeExUmuALSIOyecwiGuiJs24pA2jej5jVBbysy/QuG/0PUVLbD 8h6s9yAkrXZO/CnUv0NOQWYpHepCyhNhD2tGpNjhe+oIrWHrW2cgxNNbenWMeyg5fpsh mCXIje0T51AksJSc/3GEvWAk24372NxpW4ZExMhtHXjoI3vJzyAwtOAbUIJoIeTbwjl5 kdyg== X-Received: by 10.66.145.67 with SMTP id ss3mr29200322pab.18.1368437849090; Mon, 13 May 2013 02:37:29 -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.26 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 13 May 2013 02:37:28 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: mchehab@redhat.com, sachin.kamat@linaro.org, Pelagicore AB Subject: [PATCH 1/2] [media] timblogiw: Remove redundant platform_set_drvdata() Date: Mon, 13 May 2013 14:54:07 +0530 Message-Id: <1368437048-13172-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQnk+dcBXpfJb8otFhGeKOqJiFAdrMRdrst/kqHCBFLiNVVQVlLdryYphMQqiD97aU3TzUBS 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 Cc: Pelagicore AB --- drivers/media/platform/timblogiw.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/media/platform/timblogiw.c b/drivers/media/platform/timblogiw.c index a2f7bdd..99861c63 100644 --- a/drivers/media/platform/timblogiw.c +++ b/drivers/media/platform/timblogiw.c @@ -834,11 +834,9 @@ static int timblogiw_probe(struct platform_device *pdev) goto err_request; } - return 0; err_request: - platform_set_drvdata(pdev, NULL); v4l2_device_unregister(&lw->v4l2_dev); err_register: kfree(lw); @@ -858,8 +856,6 @@ static int timblogiw_remove(struct platform_device *pdev) kfree(lw); - platform_set_drvdata(pdev, NULL); - return 0; }