Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3168482ybg; Sun, 20 Oct 2019 08:09:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsxt0MHAyYritk5A10r8su6WZ8OmGMnGBS1GJ0GvRnXKvfiB72SVMMbKorZIQYL5Q9IJzV X-Received: by 2002:a17:906:bcdc:: with SMTP id lw28mr17781721ejb.183.1571584149498; Sun, 20 Oct 2019 08:09:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571584149; cv=none; d=google.com; s=arc-20160816; b=nOdU+7Toa5nWxT+UhXt7ZMW5AdhSuB7Pd3oJaXIsehUQblERhNEKAzWIGv7mqHsv3J oCvpvmTrdcTxJ0zfuNt0MzrbCIu01uelhfcm9dfJT3jU1J2VwJye1uu4pAJBUYMAwtvp CgaQ7eitVHUv+kQ7JhKcJKwdCN3hsrKU7/OMiXa6bdDKfe0+215td/S6+GRxKSpkw26D XxQvAGxWaWYnz14+kpIvIKS2e2Nrzypny+FZKVDHoaqts7x3TubAefjs7uHF/X9TtbwF EmYb5gliyk3OjVxLBsduH4IQ6LSEeCkfX7YMerh+MRaM4frUaafEtcBwOhNaJ5r3/iQp /bsQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=BowsyRCbYQm6XUN+12hCD9eDw6JsQcgoAbMrcPR5L+0=; b=neSlnr3t4RrC0f/TtH3nM7/4+pMX1y0BSy3yArH0TKDQFtUVQIfKNqsuvQZRCnpZ8/ mZvAm/6OlD47gVErWGLho5Vr5xSuXqR0HJs7BNa2WvY+MKQoRZEL7n9zhu02hrLG7COu o8kJ4fSFCVpoMbkyPo900YkEb60mmuAZuh5YyvHQTnvVlRz1PO9flDT1JNLY1AYg3qTV X29lBQZ9KW0H8NjsAFnj+PyixJKYfQ5nTz/eAaZl8ChwFOccvWWkUfpBaW34jaxaQOlf CseQKno0ecYXCo3RWJNKM2ag2AE5UGlUbG/zZrzdn2vtBTJMlc9fvy1ETZwUwy05plYd maRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=qHSgKbcY; 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 o1si2448251ejx.352.2019.10.20.08.08.09; Sun, 20 Oct 2019 08:09:09 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=qHSgKbcY; 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 S1726524AbfJTPH1 (ORCPT + 99 others); Sun, 20 Oct 2019 11:07:27 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46034 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726373AbfJTPH1 (ORCPT ); Sun, 20 Oct 2019 11:07:27 -0400 Received: by mail-wr1-f68.google.com with SMTP id q13so6044882wrs.12 for ; Sun, 20 Oct 2019 08:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BowsyRCbYQm6XUN+12hCD9eDw6JsQcgoAbMrcPR5L+0=; b=qHSgKbcYIsUwGQpczmipayh6Me22RJUYnCPn0NUOp1ECAhFAv/uz0+S0d7hIubBjqP XrgG/Qhd5RbqWOTIg8sXou3fMs8B0wV7O3DAJL8dKwWz8QRrQzurKZZX0laNbLSHl0LK khiqitVZ7bRom/szIEdsCzlZk+K8NFLLcOY4+czwvN7GaxP6KtzgIMChkkZndBzTAV3Q ZJyzBXwNxOrpj06MRheCvKmTYqntfcRdVNpTP2xUeGdYWGJEgBML17uP3WjTpCx9ueW1 HpXKeJOPANVTZG2jqbHX/zypnU/HCS41nWkdJrpMz346Zieb4AZRMLBwDSiOJw2iYUN7 qHRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BowsyRCbYQm6XUN+12hCD9eDw6JsQcgoAbMrcPR5L+0=; b=i4DcEBDXHzwOoVZsp7IDQiwlr3RxyRbwla9hFNZ+2e7kNqiw+C51BT6d3qI/cI5OI5 RI8KgqPGsdciPEf8NowO5sK9ZMeBKLj+yk5jwXnVhQUCBFwcCG/tLT6cgJRXYa1ps1Yz n3I8F5o2FzzhixOFDKWA23FeR2o8D1X5tstybJPHXuvwXpgdK4NKmHpsTAAAo74OwdEs 8tH2YlonNLR5tv2oAD6Ip8IC0Odaa596KKQtnZa+0IvInM059YhMVboT7A8exu47AqbX nsUREAkaKoFj2JCht/blJwyRMwF9SLV6qVS9DOpdXYqeUPn6pfDpOnM9W8/bEIyH27ew MF7g== X-Gm-Message-State: APjAAAUDmAMve9ZhZY9kTfxj1UYm0TQqYYOHUPy8pr/+1DKrvgZM4fRA dSHC3293X5fwdYDU5eTYXUJdl9M1sKc= X-Received: by 2002:adf:f402:: with SMTP id g2mr16522778wro.64.1571584044432; Sun, 20 Oct 2019 08:07:24 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:32c:e530:1f62:944f:4c42:96a0]) by smtp.gmail.com with ESMTPSA id u1sm19057633wru.90.2019.10.20.08.07.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Oct 2019 08:07:23 -0700 (PDT) From: Fabien Parent To: linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Cc: matthias.bgg@gmail.com, lee.jones@linaro.org, Fabien Parent Subject: [PATCH RESEND] mfd: mt6397: Use PLATFORM_DEVID_NONE macro instead of -1 Date: Sun, 20 Oct 2019 17:07:20 +0200 Message-Id: <20191020150720.2752-1-fparent@baylibre.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the correct macro when adding the MFD devices instead of using directly '-1' value. Signed-off-by: Fabien Parent Reviewed-by: Matthias Brugger --- drivers/mfd/mt6397-core.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c index 310dae26ddff..9b19dfeeb797 100644 --- a/drivers/mfd/mt6397-core.c +++ b/drivers/mfd/mt6397-core.c @@ -171,9 +171,9 @@ static int mt6397_probe(struct platform_device *pdev) if (ret) return ret; - ret = devm_mfd_add_devices(&pdev->dev, -1, mt6323_devs, - ARRAY_SIZE(mt6323_devs), NULL, - 0, pmic->irq_domain); + ret = devm_mfd_add_devices(&pdev->dev, PLATFORM_DEVID_NONE, + mt6323_devs, ARRAY_SIZE(mt6323_devs), + NULL, 0, pmic->irq_domain); break; case MT6391_CHIP_ID: @@ -186,9 +186,9 @@ static int mt6397_probe(struct platform_device *pdev) if (ret) return ret; - ret = devm_mfd_add_devices(&pdev->dev, -1, mt6397_devs, - ARRAY_SIZE(mt6397_devs), NULL, - 0, pmic->irq_domain); + ret = devm_mfd_add_devices(&pdev->dev, PLATFORM_DEVID_NONE, + mt6397_devs, ARRAY_SIZE(mt6397_devs), + NULL, 0, pmic->irq_domain); break; default: -- 2.23.0