From patchwork Mon Nov 11 06:24:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 3166451 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 62E65C045B for ; Mon, 11 Nov 2013 06:24:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8CF6D20278 for ; Mon, 11 Nov 2013 06:24:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8324E20274 for ; Mon, 11 Nov 2013 06:24:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752550Ab3KKGYW (ORCPT ); Mon, 11 Nov 2013 01:24:22 -0500 Received: from mail-bk0-f48.google.com ([209.85.214.48]:36662 "EHLO mail-bk0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751197Ab3KKGYW (ORCPT ); Mon, 11 Nov 2013 01:24:22 -0500 Received: by mail-bk0-f48.google.com with SMTP id u10so1530585bkz.35 for ; Sun, 10 Nov 2013 22:24:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=uKZAjhsGG5gZOB1EWPdNc5eSAX5wnoiU4UlarZ8Y0Kk=; b=ttwWy55WJ9umDB7nCRjmSWsvgnkMMzfPGi6T84tUNw4RR8p9pTSC/11lmY/hyFOzED MD6NrU3XX3+l+ZmZUVOJKFfV9Z+ivwgx/ecc+5suipjj+pG/4O7q8/KDKA0jhGOxPsR/ tLVFhb42/hhKECgIlh0wx0oPyy/d/hPw0bBwlEhZ/53BS3mKL9dnotAP4FDd4FMOnrLF UXLqXwgv8gjtzOK8LNT56G4MUExjuKSmk7WhKaGWpsf3UFhIw7qGfEFvqBMCrGHwyDRL XEj2YfRx75ckCQYtWBub65d2XTGY9oSYhl+PJKtE8DKMhD7Ndp8Sp+bDSKkjuZUMZSfy eP/A== MIME-Version: 1.0 X-Received: by 10.204.121.201 with SMTP id i9mr20593238bkr.13.1384151060707; Sun, 10 Nov 2013 22:24:20 -0800 (PST) Received: by 10.204.169.136 with HTTP; Sun, 10 Nov 2013 22:24:20 -0800 (PST) Date: Mon, 11 Nov 2013 14:24:20 +0800 Message-ID: Subject: [PATCH] Input: mma8450 - add missing i2c_set_clientdata() in mma8450_probe() From: Wei Yongjun To: dmitry.torokhov@gmail.com, grant.likely@linaro.org, rob.herring@calxeda.com, wfp5p@virginia.edu, broonie@opensource.wolfsonmicro.com, javier@dowhile0.org, sebastien.royen@armadeus.com Cc: yongjun_wei@trendmicro.com.cn, linux-input@vger.kernel.org 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, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 From: Wei Yongjun Add missing i2c_set_clientdata() in mma8450_probe(), otherwise calling i2c_get_clientdata() in mma8450_remove() returns NULL. Signed-off-by: Wei Yongjun --- drivers/input/misc/mma8450.c | 2 ++ 1 file changed, 2 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/input/misc/mma8450.c b/drivers/input/misc/mma8450.c index f330969..92c43a1 100644 --- a/drivers/input/misc/mma8450.c +++ b/drivers/input/misc/mma8450.c @@ -204,6 +204,8 @@ static int mma8450_probe(struct i2c_client *c, goto err_free_mem; } + i2c_set_clientdata(c, m); + return 0; err_free_mem: