Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3928493ybi; Tue, 18 Jun 2019 08:44:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1VjeMvrVEXwL6I1RdNskNbyQhCPMolati2zb0feZduCr0ta2xuOpVTkFCe8ncpu/eVAb1 X-Received: by 2002:a63:f70b:: with SMTP id x11mr3340003pgh.212.1560872683242; Tue, 18 Jun 2019 08:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560872683; cv=none; d=google.com; s=arc-20160816; b=0TRFqud9g9o8rdjz6zf/2r2K1GT1wSq7erOdlMYUGE0f8KM4h0jQb7aPqGH/Cxz0Fh p3s0oNlXjwU/F33PbOg6XhWusa6Mbo8M1a+NPq7gruFGluOBQ2Pb0a2GN5VxdR18iqKA Jdq47KYc6gYj+g0fOjPxuqUssLI9iZ6C9QnlijbmapyczcA+ghgFsWsrPWHf1onj6tpn UNNSCRQNPxY5zD2imyiQOpfqh95iDCqX8WNMVayfUT14MWkRj7pewNnvZV01QkJqowr3 1vkuoHlUUqI6ns9Tzq8slPpNVwnHSJzj3tIU9oaTA7LwJmCGBqRzfwhe1j+ZTvD9T9n2 1M4A== 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=z2DroQv2ruFtbq7x0Nc/gqYAN5TH+pK8pLfYV3S723M=; b=QT0fUdLngUgY6xwtgA/b6B5QNhQ2le5oJ5Sk4OHCbmhl4KDSupTQqnepYzvGiK1m/Y tWwCfMIL5eTxIa+HETl2+Oe2lF2/HuQaSYdj6x/nMsm5QwZ/pbzPPObqgYs0sx84zogJ b6ttvqeOF2nKjSEWFHklIUeL6P3uaqnFie2W8QI4yEoUkVH5eo7LF4FAYnhXLo6pLfh1 e8XfdqNkY3Vi4R+6nfgFDih13X0XphVGFRDlvlgemW39tvauX9cW2FHEM1af8qf2iGm6 9m8235ba8Qd0urZo51DJ+69PO3LOL//qoVyA1OjvTDhWXJFPdhCJJDUDzzgzs6GXluYW vblQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=RUZ5pi4G; 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 g132si496971pgc.259.2019.06.18.08.44.27; Tue, 18 Jun 2019 08:44:43 -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=RUZ5pi4G; 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 S1729494AbfFRPnx (ORCPT + 99 others); Tue, 18 Jun 2019 11:43:53 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:37568 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729272AbfFRPnx (ORCPT ); Tue, 18 Jun 2019 11:43:53 -0400 Received: by mail-wr1-f67.google.com with SMTP id v14so53226wrr.4 for ; Tue, 18 Jun 2019 08:43:51 -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=z2DroQv2ruFtbq7x0Nc/gqYAN5TH+pK8pLfYV3S723M=; b=RUZ5pi4GEOGMywZronlWI8Un8Y1j8se22zqHCih+IyO1yuWzno8FVkuUjJBI3m0H6Q WP+YBGRHeje8c5wvIMHqN7krS90n0cJhrasXt3x0ulEmWaGWSp/ys+LYjmb7QWdcRWu+ niqe1vDD6rIcuo2KfRBS5a2SQZMCAzEE7Ydb2pGdgWlJblMRS7A2EL3Pt31Z29uGh/Co /96ef69t97+oB8uh+groM6vvJwNTZ4IdxZE9tWyCd1AnCvU2fOJB/EJvIs/1t2gKJJv2 Hzb6Bdqzi6zhHpcMMg+XCwpFEzxSGcqCaQoIFoAWu8YaeF2JM64TdjnYcyWZNTccyS3v vbrA== 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=z2DroQv2ruFtbq7x0Nc/gqYAN5TH+pK8pLfYV3S723M=; b=MHZAi6weumHNPLrx8v8LNJt4pr5xljKuCWnAgsGV+C/M6XgTekE5FooJL+6QnjpRzo 985bb8cdXj6xy8kbsAagbors40cJe9yFl2oXicnS65vebQc2lwCdsV5p5DLzw1Ovl9fb kJGdRJc88hLov4V6Lev3DhZY/ptGHvKBjVULRqs5FZqp1P7DakpUS2kKyPGmX45ESiBM L0LiGX58uPNPJpC5ksMyrz32SyCMXDN2qH9MwVYtD4150Se1J330MyVHztvDOboTgTz4 dvngqrftu790uvvOWxU7qQ3zDwjDRH5td1cxE6wf21rI8eeKhkXWgHLKwt5dfyvWR+qr qDSw== X-Gm-Message-State: APjAAAU4YDu13lrumjlY9Tcjfi9yHEJqNc3JuwawTCmG37sI1yIf4HtX I1qRS12/Gv0zhh+2xfY27eeedA== X-Received: by 2002:a05:6000:1c6:: with SMTP id t6mr40208869wrx.236.1560872631011; Tue, 18 Jun 2019 08:43:51 -0700 (PDT) Received: from localhost.localdomain (amontpellier-652-1-281-69.w109-210.abo.wanadoo.fr. [109.210.96.69]) by smtp.gmail.com with ESMTPSA id z5sm2633287wma.36.2019.06.18.08.43.50 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 18 Jun 2019 08:43:50 -0700 (PDT) From: Fabien Parent To: lee.jones@linaro.org, matthias.bgg@gmail.com Cc: linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Fabien Parent Subject: [PATCH 1/2] mfd: mt6397: Use PLATFORM_DEVID_NONE macro instead of -1 Date: Tue, 18 Jun 2019 17:43:46 +0200 Message-Id: <20190618154347.16991-1-fparent@baylibre.com> X-Mailer: git-send-email 2.20.1 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 --- 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 337bcccdb914..190ed86ad93e 100644 --- a/drivers/mfd/mt6397-core.c +++ b/drivers/mfd/mt6397-core.c @@ -299,9 +299,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 MT6397_CID_CODE: @@ -314,9 +314,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.20.1