Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3449991imu; Mon, 14 Jan 2019 03:16:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN6HVuxPJAvkgBObAwmzlAJJTnADHrFqt5LZ655Ck4wr76EMNghuAcZJnJX8F4J4BrwmjCiZ X-Received: by 2002:a63:6346:: with SMTP id x67mr20111381pgb.183.1547464577125; Mon, 14 Jan 2019 03:16:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547464577; cv=none; d=google.com; s=arc-20160816; b=uW3yMCfKwQ+FgubH9TQO0ebElAzwRugkx3ARuZKlOU87Z9klVOR8aLH3iHlc1JPnKt 90OGv/QfV4glOb+KONK/4oUUIn3dUxqK2qznskAd/ThAfo4GkoYnRsl2j6NNOQQb/nMq Hv+48k4mzAsAQ9QMxl5kGtIlPjnQPtSt52dzZFlDi/aGtfaMIVzBsoCdsyOPKBScBX4x ypB2t+jAO3FJlFPFXs2n8gQuIl3XOYGFi9byfcoyj/1ql/bNNQVROB7Kh1jT2rqa8E19 RQDIWAQqqHvL9/cMQToW7FfplK5u2SzhdJJ2uOrBLSMQr/+5P7a3MBnCUJmMvtPjDnc6 CWWw== 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=SIHKUxbUMcsl1kh+bxxny68u7/r8UJ7G3RGM1yHCsVE=; b=SHXYDfD0cRuufX3/y5vT5RlVL4Py0zlTfZ6Vks/J5tna6zndgRHmDhMkUup53lgchn a3xhcRfy/qYKyRKPLtEHidNf8NGtu8ROyOq6LtCwVOY8/m0aKPH48Mky24wjRAIlCWWP +DXgTmsiangy7NvY1tsFGNHmlb2B8TYsVtjjb71+btdk/F+fkkc26HcdGje1mbvSM8A3 rs201X29dZGnNlCVinHRRPsrm0ZyY3Vpytrw7KDXrIgySC8u2a9+OOvehTp6UwySyELa th5KSohdGxESvEjpM3aWd9yCVF+ThILEOZmP5y3pCQfvLUbmSIryppVvSK9TOwgf34c2 OJQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q2KZFVSj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32si130847plg.29.2019.01.14.03.16.01; Mon, 14 Jan 2019 03:16:17 -0800 (PST) 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=@linaro.org header.s=google header.b=Q2KZFVSj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726628AbfANLOl (ORCPT + 99 others); Mon, 14 Jan 2019 06:14:41 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:42884 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726467AbfANLOk (ORCPT ); Mon, 14 Jan 2019 06:14:40 -0500 Received: by mail-lj1-f195.google.com with SMTP id l15-v6so18621444lja.9 for ; Mon, 14 Jan 2019 03:14:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SIHKUxbUMcsl1kh+bxxny68u7/r8UJ7G3RGM1yHCsVE=; b=Q2KZFVSjG5tgsGBaploWkLUUPIOpfHjyKlZxfoayiG0/BehQt/gpTKHx/OJazd4C6w ocPLgK/1fLJe7vYcFfzfPYWZ3DUqPK7vIWxDOIjrH9vk9OwiLUEmphuxybf2mcLwJ3az vcRFsureslCp55fQdamkhhuxCm3GsC2zy/oOk= 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=SIHKUxbUMcsl1kh+bxxny68u7/r8UJ7G3RGM1yHCsVE=; b=BWaCrDnuH5qbgJt87xkqnAGU+VHysiLwcOgJeOd2HnaiWj+K2d6Nh0h0SgRKHDY/Rt LcF8RCG19o+kwOH/DRBrpxrs3He3RTAtric3y4Q4ahd9KR/+GerbldO/YQecJLr7N85x gFpWw7VOviI3JP2Erm7wN5PCn/70lj32ckZ1AAKEq1GTAB+dQbTGVRtNccctqgZFHMXh zeyc6I8M07Rq9SMl/bZuC27DW0YFt2t4m5eRLltI9j/dxU0+gLGpTZ1LjtoUWT4LNbjt favfZ80FRRXw0UUF3CVXf3GPClOvQOqNKasFuvkhU/otem7oFUmqhZPT3tFMIYblUUul vB6w== X-Gm-Message-State: AJcUukeKeaK5N62eGJkGVF8wOORP2A6Mr1QrwXiz1mJvAz7Fn8uuE+M3 V2+ljJpDj87nY4Ib2HuOJQ6xKA== X-Received: by 2002:a2e:5152:: with SMTP id b18-v6mr12081054lje.88.1547464478465; Mon, 14 Jan 2019 03:14:38 -0800 (PST) Received: from localhost (c-573670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.87]) by smtp.gmail.com with ESMTPSA id z15-v6sm35185ljb.9.2019.01.14.03.14.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 03:14:37 -0800 (PST) From: Anders Roxell To: thierry.reding@gmail.com Cc: linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] pwm: imx27: fix build issue Date: Mon, 14 Jan 2019 12:14:35 +0100 Message-Id: <20190114111435.27397-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.11.0 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 When PWM_IMX27 was configured as a module we got the following build error: In file included from ../drivers/pwm/pwm-imx27.c:15: ../drivers/pwm/pwm-imx27.c:292:25: error: ‘imx_pwm_dt_ids’ undeclared here (not in a function); did you mean ‘pwm_imx27_dt_ids’? MODULE_DEVICE_TABLE(of, imx_pwm_dt_ids); ^~~~~~~~~~~~~~ ../include/linux/module.h:213:15: note: in definition of macro ‘MODULE_DEVICE_TABLE’ extern typeof(name) __mod_##type##__##name##_device_table \ ^~~~ ../include/linux/module.h:213:21: error: ‘__mod_of__imx_pwm_dt_ids_device_table’ aliased to undefined symbol ‘imx_pwm_dt_ids’ extern typeof(name) __mod_##type##__##name##_device_table \ ^~~~~~ ../drivers/pwm/pwm-imx27.c:292:1: note: in expansion of macro ‘MODULE_DEVICE_TABLE’ MODULE_DEVICE_TABLE(of, imx_pwm_dt_ids); ^~~~~~~~~~~~~~~~~~~ Rework to use the new variable name pwm_imx27_dt_ids. Fixes: 5a309d380019 ("pwm: imx: Split into two drivers") Signed-off-by: Anders Roxell --- drivers/pwm/pwm-imx27.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/pwm-imx27.c b/drivers/pwm/pwm-imx27.c index 8997c4c1bd03..55666cca4cee 100644 --- a/drivers/pwm/pwm-imx27.c +++ b/drivers/pwm/pwm-imx27.c @@ -289,7 +289,7 @@ static const struct of_device_id pwm_imx27_dt_ids[] = { { .compatible = "fsl,imx27-pwm", }, { /* sentinel */ } }; -MODULE_DEVICE_TABLE(of, imx_pwm_dt_ids); +MODULE_DEVICE_TABLE(of, pwm_imx27_dt_ids); static int pwm_imx27_probe(struct platform_device *pdev) { -- 2.19.2