From patchwork Thu Oct 3 09:46:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 2981711 Return-Path: X-Original-To: patchwork-linux-input@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 79FE0BFF0B for ; Thu, 3 Oct 2013 09:47:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1BC2A20340 for ; Thu, 3 Oct 2013 09:47:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E81E420322 for ; Thu, 3 Oct 2013 09:47:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753145Ab3JCJq5 (ORCPT ); Thu, 3 Oct 2013 05:46:57 -0400 Received: from mail-ee0-f52.google.com ([74.125.83.52]:35470 "EHLO mail-ee0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752764Ab3JCJqt (ORCPT ); Thu, 3 Oct 2013 05:46:49 -0400 Received: by mail-ee0-f52.google.com with SMTP id c41so956108eek.39 for ; Thu, 03 Oct 2013 02:46:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references:content-type; bh=USN07Rx+/XNx+bad4n1Wg7s7g3j0VgyserTBPjTpILo=; b=HshpNNICBp4lsI3sMfNoJlOT2lK/g5hHdyj1i/jcdzANQ/rZZ4I4ZRCmOPx+BijrbV CnEuRK8bPNYGEP9r94gZ6ILEeuSdFwzPjDVmsaY6p+J31sIurz7GuhFVq53UIdyrwIp9 6lZwxTpmC2D7FIXBzW9yLmDWKu9wcbJsgyg52OpX3DR3aJGjz0PyVOyyS+DAXGBG0fNj 0iXtCDbqgsF1uyLCEIDW2drarNvfq8LuqPX2dIe68GPDBPuUcrr75NhIY9erFOi6ZvlU 5oGxkoOmycfXnioV8uWDLZ2SBhfudjRHR9ZuX3Wex9nnZ/xXpatx/gRjswt/PloGSROl fAMQ== X-Gm-Message-State: ALoCoQm16xXesJQq9bfuWoq5WXrnwmeUvqursNLN+we4MIaV1k1eaXzd/bgGpTm7L2FiebRUi0AI X-Received: by 10.14.199.3 with SMTP id w3mr11379515een.33.1380793607797; Thu, 03 Oct 2013 02:46:47 -0700 (PDT) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPSA id m54sm13729274eex.2.1969.12.31.16.00.00 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Thu, 03 Oct 2013 02:46:46 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu Cc: Russell King , Dmitry Torokhov , linux-input@vger.kernel.org Subject: [PATCH 2/9] input: ambakmi: Remove unnecessary amba_set_drvdata() Date: Thu, 3 Oct 2013 11:46:24 +0200 Message-Id: <90c09ded0d4b6b9fbc0dbca7f57deb94384eaf8d.1380793579.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.8.2.3 In-Reply-To: <27e289763bbcb7d10f84081543cfc3a4dc770398.1380793579.git.michal.simek@xilinx.com> References: <27e289763bbcb7d10f84081543cfc3a4dc770398.1380793579.git.michal.simek@xilinx.com> In-Reply-To: <27e289763bbcb7d10f84081543cfc3a4dc770398.1380793579.git.michal.simek@xilinx.com> References: <27e289763bbcb7d10f84081543cfc3a4dc770398.1380793579.git.michal.simek@xilinx.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, MIME_HEADER_CTYPE_ONLY, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_TVD_MIME_EPI, T_TVD_MIME_NO_HEADERS,UNPARSEABLE_RELAY autolearn=ham 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 Driver core clears the driver data to NULL after device_release or on probe failure, so just remove it from here. Driver core change: "device-core: Ensure drvdata = NULL when no driver is bound" (sha1: 0998d0631001288a5974afc0b2a5f568bcdecb4d) Signed-off-by: Michal Simek --- drivers/input/serio/ambakmi.c | 2 -- 1 file changed, 2 deletions(-) -- 1.8.2.3 diff --git a/drivers/input/serio/ambakmi.c b/drivers/input/serio/ambakmi.c index 4e2fd44..b7c206d 100644 --- a/drivers/input/serio/ambakmi.c +++ b/drivers/input/serio/ambakmi.c @@ -167,8 +167,6 @@ static int amba_kmi_remove(struct amba_device *dev) { struct amba_kmi_port *kmi = amba_get_drvdata(dev); - amba_set_drvdata(dev, NULL); - serio_unregister_port(kmi->io); clk_put(kmi->clk); iounmap(kmi->base);