From patchwork Mon May 27 11:37:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2619301 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 32FA9DF215 for ; Mon, 27 May 2013 11:51:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758017Ab3E0LvE (ORCPT ); Mon, 27 May 2013 07:51:04 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:36406 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757380Ab3E0LvE (ORCPT ); Mon, 27 May 2013 07:51:04 -0400 Received: by mail-pa0-f43.google.com with SMTP id hz11so4069500pad.16 for ; Mon, 27 May 2013 04:51:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=Ak5kNMR4aoeY2qBcctNQJ2wDgWaQ+unpfA5VizBhpbY=; b=k56OIfHfYbFAoH+qZUoAWKCc+GaSgNkukc1EId7LVJepDSMjC33eT3bpmm6uXlo3QM vw3CPs7fa9PGnaqezu/txifC/l6rr++/8rWgbTo1koRRWRI/hVmJEPU/Zd5t2/SvEzzf iDO9F1IOLoG5kBzlJm8xblnA5kZLmZUThHsKYY+S+KN29aJz7EzhiIFJRYS0MfZ04l4v knYMMDcLfAH0IZfyURmiwN6Eja4+wA+19jWelLx0sWtx/oNya1w8jokha9IGnCOAjh1r kE9NLClEFOIncgmvvjvpVuE9I2URJZmNmergnGQm9Nf2FCVaEldmG8UdSCqs+WrtM9IL 8jXg== X-Received: by 10.66.80.40 with SMTP id o8mr29033849pax.214.1369655462887; Mon, 27 May 2013 04:51:02 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id zs12sm30398787pab.0.2013.05.27.04.51.00 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 04:51:02 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 1/4] Input: ixp4xx-beeper - Remove redundant platform_set_drvdata() Date: Mon, 27 May 2013 17:07:05 +0530 Message-Id: <1369654628-20714-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQmJX5rPitU3M5pwrIKZ9bRTb5zEwJfHYSQJej5rr9ln2w0GihJfRVO+/yfPzRem3aF30n+n Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@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/input/misc/ixp4xx-beeper.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/misc/ixp4xx-beeper.c b/drivers/input/misc/ixp4xx-beeper.c index deab4a11..f34beb2 100644 --- a/drivers/input/misc/ixp4xx-beeper.c +++ b/drivers/input/misc/ixp4xx-beeper.c @@ -138,7 +138,6 @@ static int ixp4xx_spkr_remove(struct platform_device *dev) unsigned int pin = (unsigned int) input_get_drvdata(input_dev); input_unregister_device(input_dev); - platform_set_drvdata(dev, NULL); /* turn the speaker off */ disable_irq(IRQ_IXP4XX_TIMER2);