Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3235372pxx; Mon, 2 Nov 2020 03:50:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFhYOSLGqxIs8Zo0zz6YeyO1I9RbVbZZ/ptFCxX/WX5AcxnJGTiHzGdPIgSeRNqvOtuCQZ X-Received: by 2002:a05:6402:a46:: with SMTP id bt6mr16501441edb.101.1604317810693; Mon, 02 Nov 2020 03:50:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604317810; cv=none; d=google.com; s=arc-20160816; b=K45+rqNh1tnsiE3pMv8NFhUIUQAZkA70B+mqsGioMTpTTE2Z/sNGyYMXaRNO+emHyk OTtjtejnlMs3tpdlffBlM0ssm9437b/PBrmLnUs6dsKORffLqfCjpVMNeC0OydZ0kAhk u93QWkBjNGvhIHDgVNr1b+/MrPaSiLjrFrxOcEFPcGVv+oQmXY9A6WxLDHvZKEEMNRL0 3Ls/cmnX1kJpK/SjVUFIHjqwx/KvJQUhoudTCepwHYgIRY82QdFn+emFkCa1pQf974I6 SipeVCRSw++5waMUS3iHGAvfMFfqOxHfUMFT4qk7/jAxGkw1p8Bn2cHM+brB5nALFxeK 6XMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=4/vMtCY9sLJg+9dpPRWJ9F6ylkJTs7Upz8I+XC8tLLA=; b=qN6vU6CANNm2xG6oFFCfbwqyXc4ZjUZn2eF5Ohs3X6Lnk0bM1kZ/M4bI7sky1VuDbj 07yb9JnaionyDsWcVO1uj2nDeSVe/ykoWLW5R6E7Nki+bRHYafaqCEWx/67wYiW8zwvR ldVvWWxGntXrYhW+rmsjM5fmRpVmhaHucANFDTY9cstsjKUfglW5DT7bqr37guPaJ02P VHbxkHBzKdeqoN3pKnZppSMWglGu03+jGwMgXC/5pZPHKgjEBoFbxQFz3FoWLiUveUMa 9++u6QkvFh3BiC0ofrf5D+1deMlGaKg/9BP5s4KWIxk4QE5WwlK3KMvvyxAenLXoj6RL kC2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si6650976eju.307.2020.11.02.03.49.48; Mon, 02 Nov 2020 03:50:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728794AbgKBLr7 (ORCPT + 99 others); Mon, 2 Nov 2020 06:47:59 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7031 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728638AbgKBLpx (ORCPT ); Mon, 2 Nov 2020 06:45:53 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CPrhW4vdwzhf2W; Mon, 2 Nov 2020 19:45:47 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Mon, 2 Nov 2020 19:45:39 +0800 From: Liu Shixin To: Khalil Blaiech , Wolfram Sang , Vadim Pasternak CC: , , Liu Shixin Subject: [PATCH] i2c: mlxbf: Fix build error with CONFIG_ACPI disabled Date: Mon, 2 Nov 2020 20:12:34 +0800 Message-ID: <20201102121234.1343672-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org drivers/i2c/busses/i2c-mlxbf.c: In function ‘mlxbf_i2c_acpi_probe’: drivers/i2c/busses/i2c-mlxbf.c:2296:8: error: implicit declaration of function ‘acpi_device_uid’; did you mean ‘cpu_device_up’? [-Werror=implicit-function-declaration] uid = acpi_device_uid(adev); ^~~~~~~~~~~~~~~ cpu_device_up Signed-off-by: Liu Shixin --- drivers/i2c/busses/i2c-mlxbf.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/i2c/busses/i2c-mlxbf.c b/drivers/i2c/busses/i2c-mlxbf.c index ee59e0da082d..cd8a909431a9 100644 --- a/drivers/i2c/busses/i2c-mlxbf.c +++ b/drivers/i2c/busses/i2c-mlxbf.c @@ -2272,6 +2272,7 @@ static const struct acpi_device_id mlxbf_i2c_acpi_ids[] = { MODULE_DEVICE_TABLE(acpi, mlxbf_i2c_acpi_ids); +#ifdef CONFIG_ACPI static int mlxbf_i2c_acpi_probe(struct device *dev, struct mlxbf_i2c_priv *priv) { const struct acpi_device_id *aid; @@ -2305,6 +2306,12 @@ static int mlxbf_i2c_acpi_probe(struct device *dev, struct mlxbf_i2c_priv *priv) return ret; } +#else +static int mlxbf_i2c_acpi_probe(struct device *dev, struct mlxbf_i2c_priv *priv) +{ + return -ENODEV; +} +#endif static int mlxbf_i2c_of_probe(struct device *dev, struct mlxbf_i2c_priv *priv) { -- 2.25.1