Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2609555pxb; Sat, 28 Aug 2021 21:18:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx14dzTPo446Ojibfujj2BqWYz5mLRe/Asewzkh9nZ/aFjWe0ewLjq3+XIzpeY2TEdjnB7o X-Received: by 2002:a05:6e02:134e:: with SMTP id k14mr12430836ilr.31.1630210700532; Sat, 28 Aug 2021 21:18:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630210700; cv=none; d=google.com; s=arc-20160816; b=CO9GfEf72v/bGkhCvAG2DyXhQ2k2j4u6DAW4wnsEUzARbK4jsblZA7+eeu0rxdJesh BxPzKwhVZjhRMQz5SJIL2flhw8S0p2uaSB0hG2FqAeIz0bJjWV+94q8cq4ZhjkxC+KV5 oPJ4zmPHV3+sjJK3oNuLnw/u5xg8QsiN61MKVxrs0/fanwek2U5gGMFkNkQ7RJiUTsqe ePYBYUff7Ac0ECGz/rKUQGy8Ga3MH0lBygZIxlylHhAynK3cBYIPz3sJEhfTEAbaV4qO 91zKy0KIXh34NJSRu/q8VXNwK2TJxsBev1aY/QmpH4S5zuX2COXbybQXi2KWY3V2WVgr 39Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=Vu3cY4XX+5Q1YyDTqv10Q/CIT3qo24n8BpPskKbwjnI=; b=p7FVsDFASYOAsSDQ6ZnOFcGTEQT518L/aOhBqtwuQG34FMCjIpYV2gOwG+U53eFOPs VuZOE3a2GBmRQ39VAIJgwor+JjPxYWwZkFQpfr+2BtcZdaXh3djL2tqUNF+F09d3Klj6 PnfjPaA6EGGeTAvtS1PDArXxehvdYGrP1Om0ONdCsF7FpF+ix7uFehW8m4Shh92xNZFU YthYu65JiHi5qDPEto9WSijo23Uv3i1h8AbbdIR+ckL3+Yt8pGjqBUNkhVzdot36gwkC fvDR2ghmFjOf4w5wCVdmtsbTftJ0/w9KfhbbjTGK27Htb0bVdwFtzjUWfHNN8D1x8rp2 VjiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F79Es4jW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a2si11160211ilp.123.2021.08.28.21.17.52; Sat, 28 Aug 2021 21:18:20 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F79Es4jW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229893AbhH2EPu (ORCPT + 99 others); Sun, 29 Aug 2021 00:15:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:39104 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbhH2EPt (ORCPT ); Sun, 29 Aug 2021 00:15:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E981060E08; Sun, 29 Aug 2021 04:14:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630210498; bh=Qg4wsLXlDpD1zwmlBbHXRGxiCepR2RCY/C5RXovTJYE=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=F79Es4jWcaSofx0PWWTDpkY2/fviRSgxhnhtqTkbECFjzGoClSTyA+a9oEQ577Fp8 fZNx0nYTVEKngO+QSmLnLseUouai/6IK4LPYpnqaXUwsHtm5SiknPrQTeTGYpd3uLd Ua2pJArM3EZn/jtl3OnrA91tQsO1RWYQSE4fDa8xfeHx7Mehi7PyK4ioiqzLcRf0Zw yY8emlBZKjUfgAekSdJlix2KEC8hoV5kW9M3GskpDUGiqbNRYtfuVz7jZS/Z//EQ9Q 09fpczCiJOVZ8/G745i57GM4Jp7POE8mXodFz4zLXlWYspBhBeJVJR8s2tnxOuT+YB aHCsx0S1WSJhw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20210813032429.14715-4-miles.chen@mediatek.com> References: <20210813032429.14715-1-miles.chen@mediatek.com> <20210813032429.14715-4-miles.chen@mediatek.com> Subject: Re: [RESEND PATCH 3/4] clk: mediatek: support COMMON_CLK_MT6779 module build From: Stephen Boyd Cc: Wendell Lin , Hanks Chen , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wsd_upstream@mediatek.com, Miles Chen , Lee Jones To: Matthias Brugger , Michael Turquette , Miles Chen Date: Sat, 28 Aug 2021 21:14:56 -0700 Message-ID: <163021049667.2676726.10138202396240942833@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Miles Chen (2021-08-12 20:24:28) > diff --git a/drivers/clk/mediatek/clk-mt6779-aud.c b/drivers/clk/mediatek= /clk-mt6779-aud.c > index 11b209f95e25..439c0bc94b73 100644 > --- a/drivers/clk/mediatek/clk-mt6779-aud.c > +++ b/drivers/clk/mediatek/clk-mt6779-aud.c > @@ -4,6 +4,7 @@ > * Author: Wendell Lin > */ > =20 > +#include > #include > #include > #include > @@ -115,3 +116,4 @@ static struct platform_driver clk_mt6779_aud_drv =3D { > }; > =20 > builtin_platform_driver(clk_mt6779_aud_drv); > +MODULE_LICENSE("GPL"); How does this work? builtin_platform_driver() means that it's not modular code. Shouldn't that be module_platform_driver()? Have you tried loading and unloading the module?