Message ID | e16ba754-078a-097a-7333-076f43718645@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 824F460362 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 2 Feb 2018 17:22:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7277F28BC4 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 2 Feb 2018 17:22:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6678D28CD8; Fri, 2 Feb 2018 17:22:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E896B28BC4 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 2 Feb 2018 17:22:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:References:To:From:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Nt2NRv8d6pQya+KtqlRYDkfQitNZoVVONHDlGXspgKQ=; b=rqhLcjsurXVRwJ MOlS4uQjBMfB9A3VnS7DrVrq4dpzu5cVhhBuddvVsmwUK1NGkSBgZRyAGmG36mqdN1CsHXLv13Wcf NjU7nLzfOCoeyjBwP2f77IZJfDpb+Ls0SzksLzlZFxDW3+e2T4ehroQTBi++pcROqsOacCEYSmLqM cvctEOlOfRzfo+IxkPhmweNA40VNycLFKQhk485Oy4SxRjXgYtqMaRxUYuhXtAicPd/lVEWvTWVCF efnPg9AyEMIOKDNotNgAiwxO9JjYer5ktdGNr+VkRkJ/qFa7wneHqDQQvLfP6Un78E5u5T0s+04K/ fxayRkJnkAKchcRSWePg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ehf2u-0007gB-6q; Fri, 02 Feb 2018 17:22:40 +0000 Received: from mout.web.de ([212.227.15.14]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ehf2q-0007ek-Qo for linux-arm-kernel@lists.infradead.org; Fri, 02 Feb 2018 17:22:38 +0000 Received: from [192.168.1.2] ([92.228.169.238]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0M4Zlk-1evrTV3kLc-00ykZy; Fri, 02 Feb 2018 18:22:21 +0100 Subject: [PATCH 2/2] i2c-davinci: Improve a size determination in davinci_i2c_probe() From: SF Markus Elfring <elfring@users.sourceforge.net> To: linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Kevin Hilman <khilman@kernel.org>, Sekhar Nori <nsekhar@ti.com>, Wolfram Sang <wsa@the-dreams.de> References: <4e668c87-65f5-8a00-132a-0184779faa08@users.sourceforge.net> Message-ID: <e16ba754-078a-097a-7333-076f43718645@users.sourceforge.net> Date: Fri, 2 Feb 2018 18:22:21 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <4e668c87-65f5-8a00-132a-0184779faa08@users.sourceforge.net> Content-Language: en-US X-Provags-ID: V03:K0:36QAdl1NNElsX9VydWdFWM9oCS1i19ealWs0Jii3zrRhHohkfY4 Se0yodtUsRVkVJSfMOjFvsi6JsupDQDw5+d2sxjybEfowQZvGPMFeaESeMGIOqFN69VT8PN QIde9cUIeMO4F0E5LDg9dmBpzllkVgTCOGsDXPER8Jp7GqhRDLJy+fkYHJ91tVt7iW885MM Tc3eeXpgLQaJwQ+rqMK3Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:YNI7N8PlpeA=:aRq54R7F5742vks+f7+gQg YAgv42bNOlTCpRk5qS9E8XZ/s0zE6gU3vvCwsa/wKrXXQQJEfmtP3AaTf7dyxWpz7if7P3MBj TZymZNXTFUa931+9Fxf72lSMW69PZzxXbgRBZ5dzyUQWwWQEfB7dwww0BrX/eQxIP+tZ+UTP6 Dccy+RXzkr7KV1PQ7mwXwYEgg2LcEqMjKuz97LUAwobpqoLYJfKVmmlW7bJ96nWwVrvWd8oxH FjXQx55zoRC5MkNnux1kcqDe7yux6G04lCm6f0frOCis4OwAs4RhsxLt3hgatBwNMEeFwKX41 wrcdqM0Tc4pOELTbt/OIMlCkErNv/iNgXiAvZC6B9Viw5SYLgo7jq3m0XbUkECxgbbiQAzSuL ow6AiVIi7ymVbgC4o23BvuHDGnddYcJOVOCqk1YRyIXr5KMVn9n9E2RP8fnlrYxqAyosmzXug 4y8ZzB9smhxz/lsuTc6XsjiWonQss4cO/TPYxBxsIXzVikHDMPCG5d5zNX5s9oiw8SlYQiIif +IFhtGly/y1enF9MSm10DrZ10w3GfB8vRaRLGkYteqK3M4099rS9GDIBU58xcnbxBcFFQ6ZZG jbJnt+SSdrDnCiactlREbfwpVcFc2bwaXCRTUZ+8378FW+sp9/GbqF1Y7/fk6k6VvcQkR4bmA 0OFJRkjHtQE7VsiqYcblf8d/CCoqFI7QVdecTHmtFbXDKM2Qoei8hdzdDvS+EPUbN6wQvYEdU cv3maJCBH7Pzb502iJygWBEGF8sDHitZaDkgdbW8NaO2MF43xDK1eJE2o64I79E8Li/ZWOyux 5quwpUdjYqxqlgujdISU/zpdX3SQ7J1R7ZSWs0vZEB38nL/UA0= X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: kernel-janitors@vger.kernel.org, LKML <linux-kernel@vger.kernel.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/i2c/busses/i2c-davinci.c b/drivers/i2c/busses/i2c-davinci.c index 71a9c29b3981..1702b1d1b000 100644 --- a/drivers/i2c/busses/i2c-davinci.c +++ b/drivers/i2c/busses/i2c-davinci.c @@ -782,8 +782,7 @@ static int davinci_i2c_probe(struct platform_device *pdev) return irq; } - dev = devm_kzalloc(&pdev->dev, sizeof(struct davinci_i2c_dev), - GFP_KERNEL); + dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL); if (!dev) return -ENOMEM;