Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp575421img; Fri, 22 Mar 2019 04:21:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqye7vmwgYFN7xVBPJuOhrn6sFxoIetsbE6ckdpvx2hmwTEq5M9TUmv3VXycU8oRBc7/kTxk X-Received: by 2002:a62:4754:: with SMTP id u81mr8754408pfa.66.1553253706770; Fri, 22 Mar 2019 04:21:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553253706; cv=none; d=google.com; s=arc-20160816; b=H/fK4qEg1qAK25iCsKqKD0nOYKFY3CCmsQBB3vKeQBtfL/wfL8c8nNUrvlbodV37KH wLAimdysjf0AF+Ye/6I8ZieUkQ3gNb45VpVlDu1auZWGyXv3rS6UbWkX2aG5ksGlfoNO HzHtXUML6vk8phq+rpceChgL496ude/GSDCAD6W2cAlwocu1HLmB9c7SC/bB3JMvr/wp PpZnINp6rQQnPjjYj9zyIFlikmLo1aRq/RjTYCI97nEzbqgFOm6UNVoygUsbjllnJrp6 gT+skFE1bMOUx0hDX/Avqlg3ISmgSJLV8ygUdVHw/YTuSNjh7HTqEtaiDcQz/fdZezwt oWcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WTd/CJ2hthAG1ezJZ6jARptNjrTsd9DBJoKORy5Izlc=; b=GqAV9UkvXJHmuU0j8keBP6u2L7315+OmNY1MQpx0GU1Ce2vBU8a6JcSN8tNH+raRqK DgOJcL1XinOwR+mi81ZUpkt8Eqm6yGG0868ECm+QuqU+voHxav5nICcPChrh5oynDvQU PjVkiB5RlN8bQ7tUjPWa0K/60zqA1g1R1QieA+SInn1qBMhv5OGBZ8bZfcG5fIMz+ZUV VU069r2QJjy3YapUsRWYYVYJi9LJ9+YJ++WFnCw1ssYw8an5Vpa6d/IBTCXYofykM0fp KvJiWTqzDIewyj0umZZOeBONt0N3oNUg5LTYp3tYkaCMXw8ijmc8snifPJ99OVCF+4xZ zc6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="IyXBQ/oF"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si6947407plb.39.2019.03.22.04.21.31; Fri, 22 Mar 2019 04:21:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="IyXBQ/oF"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728352AbfCVLUY (ORCPT + 99 others); Fri, 22 Mar 2019 07:20:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:46656 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728310AbfCVLUS (ORCPT ); Fri, 22 Mar 2019 07:20:18 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0F7712190A; Fri, 22 Mar 2019 11:20:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553253617; bh=5VVM8unCWTPrtRypCSjj3sKg+IQgzocYLje1x2F4LaY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IyXBQ/oFZ7IC6zIWFKFXGnSE+7yWDNs83ZNHOiSbLjO+XK3Apwhiltw0KtJGmw7cw pj3Gai+ULIPE/jjaxfoqjH+LpIQTyPKNOezUcjxs6BNXsXsUg/7lrUz0b//8AzP9/r nVmNbyIh1LsBNNTyC0h+c3JiWBu89648cYU75vDI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vignesh R , Lee Jones , Sasha Levin Subject: [PATCH 3.18 004/134] mfd: ti_am335x_tscadc: Use PLATFORM_DEVID_AUTO while registering mfd cells Date: Fri, 22 Mar 2019 12:13:37 +0100 Message-Id: <20190322111210.633376419@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190322111210.465931067@linuxfoundation.org> References: <20190322111210.465931067@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit b40ee006fe6a8a25093434e5d394128c356a48f3 ] Use PLATFORM_DEVID_AUTO to number mfd cells while registering, so that different instances are uniquely identified. This is required in order to support registering of multiple instances of same ti_am335x_tscadc IP. Signed-off-by: Vignesh R Signed-off-by: Lee Jones Signed-off-by: Sasha Levin --- drivers/mfd/ti_am335x_tscadc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/ti_am335x_tscadc.c b/drivers/mfd/ti_am335x_tscadc.c index 5726bf4e6c61f..e8d5d171ab048 100644 --- a/drivers/mfd/ti_am335x_tscadc.c +++ b/drivers/mfd/ti_am335x_tscadc.c @@ -282,8 +282,9 @@ static int ti_tscadc_probe(struct platform_device *pdev) cell->pdata_size = sizeof(tscadc); } - err = mfd_add_devices(&pdev->dev, pdev->id, tscadc->cells, - tscadc->used_cells, NULL, 0, NULL); + err = mfd_add_devices(&pdev->dev, PLATFORM_DEVID_AUTO, + tscadc->cells, tscadc->used_cells, NULL, + 0, NULL); if (err < 0) goto err_disable_clk; -- 2.19.1