Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2894458pxb; Sun, 8 Nov 2020 18:05:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJxzA8iWlf3T2ELdhLcmVcHcdVxz8lOjx5v4tmp9TAVoncaZIkExQpe8KzgCedsknXoARQt7 X-Received: by 2002:a17:906:444:: with SMTP id e4mr13773179eja.218.1604887542191; Sun, 08 Nov 2020 18:05:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604887542; cv=none; d=google.com; s=arc-20160816; b=SaBHjlOfCaZYlCyPKtuJ+4Qye2K59Xu4X6bf9MlBpyD/zQHomFDlFQFWj3sZXUIuZT 4eumlt2HqQ1BsgAn0XEePG3LBzqRHzhGxjT4DurgKGagLk1drDtQKzoDWiy/t9ZKu0bO RGU6foxJomZl1mGtnvKZYJunjsvXJb75ngLVQd1Z+ePV+bUmNYAnV4tjIaLvmiIft+ek RWQV42jG/uFe+rYkSJCUamUNE1Oy3KqGM0RiIgiP22jAAK5Q/2hZemjx7t4uASdzRA9b 6mTa+Pz5836YjQ9tEhM6q/qPNKMb1E4zm1sXiADO2IuTclt/xrNI378pzDvWzxroWxYr 62Sg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=t6abyv7GQaCstliXITKrDOnJbXdw7pIR+rkQrfnHEvI=; b=XD2cdKWX63GCgEHgh5tr0wak6ShiWu3PAt/nOhMvbGGL9RwzB+h4p+f6XMcnr/BRpZ C0ysn6EnGXckB5AN2+UnpK1HM8Pf8vGGm2CwcICgrV9yUG0l0G2FcQE+2/CeWeOb7910 vX1altV+kZmH0NuDtHP5y56kial+H93HF0+E69ew9rSlUrztjnsyD3QHqhTmgMPSHU4P Z0RjIFSmy8G3SR42EhZhbM8YP2rKDm5BOGr5vWpSkpiNOfTrH0wl6g5aK6cOnrd1xLha h2TFwvorsg482Bl1uOj7VGIEc70rAqlZ08M6+0dMTATM1uGgz4r82drq2hzDdZNExhdw CDrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=eURTsWlj; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp1si6756506ejc.167.2020.11.08.18.05.19; Sun, 08 Nov 2020 18:05:42 -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; dkim=pass header.i=@mediatek.com header.s=dk header.b=eURTsWlj; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729055AbgKICEA (ORCPT + 99 others); Sun, 8 Nov 2020 21:04:00 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:57267 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728006AbgKICD7 (ORCPT ); Sun, 8 Nov 2020 21:03:59 -0500 X-UUID: 7dec71fd02864847bc6fd8c36d4da4a9-20201109 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=t6abyv7GQaCstliXITKrDOnJbXdw7pIR+rkQrfnHEvI=; b=eURTsWljrACT4cc0oIz2kutlB56jDOD8arqU3QIS/kgH4u5aIlRLl0bDB8o5zkNEjQQEdtUvm73YoOloLagIvZHiy6B2HZYfqqVDGDc7P8EtxbNLUv8Aed/bQ5XrtOldx+fBF2EGjcnwjxq+vadBsqURk6T8VMqI9Xgy5MSQJ48=; X-UUID: 7dec71fd02864847bc6fd8c36d4da4a9-20201109 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1082000444; Mon, 09 Nov 2020 10:03:53 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 9 Nov 2020 10:03:53 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 9 Nov 2020 10:03:52 +0800 From: Weiyi Lu To: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat CC: , , , , , Weiyi Lu , Yingjoe Chen Subject: [PATCH v5 09/24] clk: mediatek: Add mtk_clk_simple_probe() to simplify clock providers Date: Mon, 9 Nov 2020 10:03:34 +0800 Message-ID: <1604887429-29445-10-git-send-email-weiyi.lu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1604887429-29445-1-git-send-email-weiyi.lu@mediatek.com> References: <1604887429-29445-1-git-send-email-weiyi.lu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org TW9zdCBvZiBzdWJzeXN0ZW0gY2xvY2sgcHJvdmlkZXJzIG9ubHkgbmVlZCB0byByZWdpc3RlciBj bG9jayBnYXRlcw0KaW4gdGhlaXIgcHJvYmUoKSBmdW5jdGlvbi4NClRvIHJlZHVjZSB0aGU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