From patchwork Thu Sep 5 19:23:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olof Johansson X-Patchwork-Id: 272943 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 928CF2C00EC for ; Fri, 6 Sep 2013 05:23:22 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754125Ab3IETXT (ORCPT ); Thu, 5 Sep 2013 15:23:19 -0400 Received: from mail-pb0-f50.google.com ([209.85.160.50]:44967 "EHLO mail-pb0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753398Ab3IETXT (ORCPT ); Thu, 5 Sep 2013 15:23:19 -0400 Received: by mail-pb0-f50.google.com with SMTP id uo5so2190028pbc.23 for ; Thu, 05 Sep 2013 12:23:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=2UFpdsoJH4FraKeGJbGVQ8VApMfzfanNT0n9FWoiY0A=; b=SGXIPrxe2VzriNi7dCaxPqnoxpFLNfQ0FL0t+4+jOg+LPvXTIe37KkXXaaGQl0xp8f onRfr1o63J22eVRnECOzy51jlTFDyTe0R4UJ/yC9yw4Zry68g8dWJyFrqbGKsVlQig2+ KgDkDmRXfZAZJNr8BAV5Ha8HXnmAIyHNA87HhpskeqsTmmgbLnvcULaAJWbDFDNKesTr EEJN0mdNd7LR1Mc5YsGUHQHxZIWNMUJxzrH6qKGZPfzExU0HEhHcKNZ2BFXubxCOUtFh 7uncMhRns4Gu5gZn7DC9MUV3sNB+/tqck5kGcktCClqdm/lfDlA2K/Wjwpt7etsbiLmE XjgQ== X-Gm-Message-State: ALoCoQlxfLl5tNQYdzEdz180Kpc3Rt72r56dJ/AzhycUCrRsSr4+zQaUiMaKfMU62B3cStiFxdCW X-Received: by 10.68.247.36 with SMTP id yb4mr10933729pbc.138.1378408998886; Thu, 05 Sep 2013 12:23:18 -0700 (PDT) Received: from brutus.lixom.net (173-13-129-225-sfba.hfc.comcastbusiness.net. [173.13.129.225]) by mx.google.com with ESMTPSA id pu5sm39774350pac.21.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Sep 2013 12:23:17 -0700 (PDT) From: Olof Johansson To: Wolfram Sang Cc: Sekhar Nori , Kevin Hilman , linux-i2c@vger.kernel.org, Olof Johansson , Jingoo Han Subject: [PATCH] i2c: davinci: Fix bad dev_get_platdata() conversion Date: Thu, 5 Sep 2013 12:23:44 -0700 Message-Id: <1378409024-13432-1-git-send-email-olof@lixom.net> X-Mailer: git-send-email 1.7.10.4 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org commit 6d4028c644e (i2c: use dev_get_platdata()) did a bad conversion of this one case: drivers/i2c/busses/i2c-davinci.c: In function 'davinci_i2c_probe': drivers/i2c/busses/i2c-davinci.c:665:2: warning: passing argument 1 of 'dev_get_platdata' from incompatible pointer type [enabled by default] Cc: Jingoo Han Signed-off-by: Olof Johansson Reviewed-by: Jingoo Han Acked-by: Wolfram Sang --- drivers/i2c/busses/i2c-davinci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-davinci.c b/drivers/i2c/busses/i2c-davinci.c index 5747341..132369f 100644 --- a/drivers/i2c/busses/i2c-davinci.c +++ b/drivers/i2c/busses/i2c-davinci.c @@ -662,7 +662,7 @@ static int davinci_i2c_probe(struct platform_device *pdev) #endif dev->dev = &pdev->dev; dev->irq = irq->start; - dev->pdata = dev_get_platdata(&dev->dev); + dev->pdata = dev_get_platdata(&pdev->dev); platform_set_drvdata(pdev, dev); if (!dev->pdata && pdev->dev.of_node) {