From patchwork Mon Nov 11 06:18:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 3166431 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 42E96C045B for ; Mon, 11 Nov 2013 06:18:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7563F20257 for ; Mon, 11 Nov 2013 06:18:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A4E5320240 for ; Mon, 11 Nov 2013 06:18:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752686Ab3KKGSz (ORCPT ); Mon, 11 Nov 2013 01:18:55 -0500 Received: from mail-bk0-f49.google.com ([209.85.214.49]:40319 "EHLO mail-bk0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751762Ab3KKGSz (ORCPT ); Mon, 11 Nov 2013 01:18:55 -0500 Received: by mail-bk0-f49.google.com with SMTP id w14so1845272bkz.22 for ; Sun, 10 Nov 2013 22:18:54 -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=5hgafZFwmVgf+0aBFPl8SXJWmPhB1gD/IGdxPlRO8bM=; b=txIMpy5HM8f2Q67IAra1qLvJ7yhOaAGCd1cZt/s5H8KyEhP23sVPS+57X49K25e2qh Iub8nzeUsPaFlGyZIAPorj0bZjDULoFomzz3HyWKNDWNuV8I5xRLIvpl2oEW9RzzMNR9 C8szwk46DagRvX1bxwxa2AfHEbTgYdRZLwflruzws1Kcbsp4kvDrRKgF9M586nq3fAX3 PI1con2QW2S4+Wv+FDr40SxKiY2pg3KAdWyFcj9nUDw2KjItmzvjIUehL+L+2CN9p49A aFwHwzv4aB3L+bMYJDjmYvwVuUJ09wOg1yBq1ECM5IRJNQ6lnmOvHJN7LpSgX8ovXJOI VDfg== MIME-Version: 1.0 X-Received: by 10.204.127.135 with SMTP id g7mr41687bks.42.1384150734200; Sun, 10 Nov 2013 22:18:54 -0800 (PST) Received: by 10.204.169.136 with HTTP; Sun, 10 Nov 2013 22:18:54 -0800 (PST) Date: Mon, 11 Nov 2013 14:18:54 +0800 Message-ID: Subject: [PATCH] Input: mpu3050 - add missing i2c_set_clientdata() in mpu3050_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, rmk+kernel@arm.linux.org.uk 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 mpu3050_probe(), otherwise calling i2c_get_clientdata() in mpu3050_remove() returns NULL. Signed-off-by: Wei Yongjun --- drivers/input/misc/mpu3050.c | 1 + 1 file changed, 1 insertion(+) -- 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/mpu3050.c b/drivers/input/misc/mpu3050.c index dce0d95..6983ffb 100644 --- a/drivers/input/misc/mpu3050.c +++ b/drivers/input/misc/mpu3050.c @@ -383,6 +383,7 @@ static int mpu3050_probe(struct i2c_client *client, pm_runtime_enable(&client->dev); pm_runtime_set_autosuspend_delay(&client->dev, MPU3050_AUTO_DELAY); + i2c_set_clientdata(client, sensor); return 0;