#include <linux/kernel.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/clk-provider.h>
#include <linux/regmap.h>
#include <linux/reset-controller.h>
#include <dt-bindings/clock/qcom,gcc-ipq6018.h>
#include <dt-bindings/reset/qcom,gcc-ipq6018.h>
#include "common.h"
#include "clk-regmap.h"
#include "clk-pll.h"
#include "clk-rcg.h"
#include "clk-branch.h"
#include "clk-alpha-pll.h"
#include "clk-regmap-divider.h"
#include "clk-regmap-mux.h"
#include "reset.h"
enum { … };
static struct clk_alpha_pll gpll0_main = …;
static struct clk_fixed_factor gpll0_out_main_div2 = …;
static struct clk_alpha_pll_postdiv gpll0 = …;
static const struct clk_parent_data gcc_xo_gpll0_gpll0_out_main_div2[] = …;
static const struct parent_map gcc_xo_gpll0_gpll0_out_main_div2_map[] = …;
static struct clk_alpha_pll ubi32_pll_main = …;
static struct clk_alpha_pll_postdiv ubi32_pll = …;
static struct clk_alpha_pll gpll6_main = …;
static struct clk_alpha_pll_postdiv gpll6 = …;
static struct clk_alpha_pll gpll4_main = …;
static struct clk_alpha_pll_postdiv gpll4 = …;
static const struct freq_tbl ftbl_pcnoc_bfdcd_clk_src[] = …;
static struct clk_rcg2 pcnoc_bfdcd_clk_src = …;
static struct clk_alpha_pll gpll2_main = …;
static struct clk_alpha_pll_postdiv gpll2 = …;
static struct clk_alpha_pll nss_crypto_pll_main = …;
static struct clk_alpha_pll_postdiv nss_crypto_pll = …;
static const struct freq_tbl ftbl_qdss_tsctr_clk_src[] = …;
static const struct clk_parent_data gcc_xo_gpll4_gpll0_gpll6_gpll0_div2[] = …;
static const struct parent_map gcc_xo_gpll4_gpll0_gpll6_gpll0_div2_map[] = …;
static struct clk_rcg2 qdss_tsctr_clk_src = …;
static struct clk_fixed_factor qdss_dap_sync_clk_src = …;
static const struct freq_tbl ftbl_qdss_at_clk_src[] = …;
static struct clk_rcg2 qdss_at_clk_src = …;
static struct clk_fixed_factor qdss_tsctr_div2_clk_src = …;
static const struct freq_tbl ftbl_nss_ppe_clk_src[] = …;
static const struct clk_parent_data gcc_xo_bias_gpll0_gpll4_nss_ubi32[] = …;
static const struct parent_map gcc_xo_bias_gpll0_gpll4_nss_ubi32_map[] = …;
static struct clk_rcg2 nss_ppe_clk_src = …;
static struct clk_branch gcc_xo_clk_src = …;
static const struct freq_tbl ftbl_nss_ce_clk_src[] = …;
static const struct clk_parent_data gcc_xo_gpll0[] = …;
static const struct parent_map gcc_xo_gpll0_map[] = …;
static struct clk_rcg2 nss_ce_clk_src = …;
static struct clk_branch gcc_sleep_clk_src = …;
static const struct freq_tbl ftbl_snoc_nssnoc_bfdcd_clk_src[] = …;
static const struct clk_parent_data
gcc_xo_gpll0_gpll6_gpll0_out_main_div2[] = …;
static const struct parent_map gcc_xo_gpll0_gpll6_gpll0_out_main_div2_map[] = …;
static struct clk_rcg2 snoc_nssnoc_bfdcd_clk_src = …;
static const struct freq_tbl ftbl_apss_ahb_clk_src[] = …;
static struct clk_rcg2 apss_ahb_clk_src = …;
static const struct freq_tbl ftbl_nss_port5_rx_clk_src[] = …;
static const struct clk_parent_data
gcc_xo_uniphy0_rx_tx_uniphy1_rx_tx_ubi32_bias[] = …;
static const struct parent_map
gcc_xo_uniphy0_rx_tx_uniphy1_rx_tx_ubi32_bias_map[] = …;
static struct clk_rcg2 nss_port5_rx_clk_src = …;
static const struct freq_tbl ftbl_nss_port5_tx_clk_src[] = …;
static const struct clk_parent_data
gcc_xo_uniphy0_tx_rx_uniphy1_tx_rx_ubi32_bias[] = …;
static const struct parent_map
gcc_xo_uniphy0_tx_rx_uniphy1_tx_rx_ubi32_bias_map[] = …;
static struct clk_rcg2 nss_port5_tx_clk_src = …;
static const struct freq_tbl ftbl_pcie_axi_clk_src[] = …;
static const struct freq_tbl ftbl_pcie_rchng_clk_src[] = …;
static const struct clk_parent_data gcc_xo_gpll0_gpll4[] = …;
static const struct parent_map gcc_xo_gpll0_gpll4_map[] = …;
static struct clk_rcg2 pcie0_axi_clk_src = …;
static const struct freq_tbl ftbl_usb0_master_clk_src[] = …;
static const struct clk_parent_data gcc_xo_gpll0_out_main_div2_gpll0[] = …;
static const struct parent_map gcc_xo_gpll0_out_main_div2_gpll0_map[] = …;
static struct clk_rcg2 usb0_master_clk_src = …;
static struct clk_regmap_div apss_ahb_postdiv_clk_src = …;
static struct clk_fixed_factor gcc_xo_div4_clk_src = …;
static const struct freq_tbl ftbl_nss_port1_rx_clk_src[] = …;
static const struct clk_parent_data gcc_xo_uniphy0_rx_tx_ubi32_bias[] = …;
static const struct parent_map gcc_xo_uniphy0_rx_tx_ubi32_bias_map[] = …;
static struct clk_rcg2 nss_port1_rx_clk_src = …;
static const struct freq_tbl ftbl_nss_port1_tx_clk_src[] = …;
static const struct clk_parent_data gcc_xo_uniphy0_tx_rx_ubi32_bias[] = …;
static const struct parent_map gcc_xo_uniphy0_tx_rx_ubi32_bias_map[] = …;
static struct clk_rcg2 nss_port1_tx_clk_src = …;
static struct clk_rcg2 nss_port2_rx_clk_src = …;
static struct clk_rcg2 nss_port2_tx_clk_src = …;
static struct clk_rcg2 nss_port3_rx_clk_src = …;
static struct clk_rcg2 nss_port3_tx_clk_src = …;
static struct clk_rcg2 nss_port4_rx_clk_src = …;
static struct clk_rcg2 nss_port4_tx_clk_src = …;
static struct clk_regmap_div nss_port5_rx_div_clk_src = …;
static struct clk_regmap_div nss_port5_tx_div_clk_src = …;
static const struct freq_tbl ftbl_apss_axi_clk_src[] = …;
static const struct clk_parent_data gcc_xo_gpll0_gpll6_ubi32_gpll0_div2[] = …;
static const struct parent_map
gcc_xo_gpll0_gpll6_ubi32_gpll0_div2_map[] = …;
static struct clk_rcg2 apss_axi_clk_src = …;
static const struct freq_tbl ftbl_nss_crypto_clk_src[] = …;
static const struct clk_parent_data gcc_xo_nss_crypto_pll_gpll0[] = …;
static const struct parent_map gcc_xo_nss_crypto_pll_gpll0_map[] = …;
static struct clk_rcg2 nss_crypto_clk_src = …;
static struct clk_regmap_div nss_port1_rx_div_clk_src = …;
static struct clk_regmap_div nss_port1_tx_div_clk_src = …;
static struct clk_regmap_div nss_port2_rx_div_clk_src = …;
static struct clk_regmap_div nss_port2_tx_div_clk_src = …;
static struct clk_regmap_div nss_port3_rx_div_clk_src = …;
static struct clk_regmap_div nss_port3_tx_div_clk_src = …;
static struct clk_regmap_div nss_port4_rx_div_clk_src = …;
static struct clk_regmap_div nss_port4_tx_div_clk_src = …;
static const struct freq_tbl ftbl_nss_ubi_clk_src[] = …;
static const struct clk_parent_data
gcc_xo_ubi32_pll_gpll0_gpll2_gpll4_gpll6[] = …;
static const struct parent_map gcc_xo_ubi32_gpll0_gpll2_gpll4_gpll6_map[] = …;
static struct clk_rcg2 nss_ubi0_clk_src = …;
static const struct freq_tbl ftbl_adss_pwm_clk_src[] = …;
static struct clk_rcg2 adss_pwm_clk_src = …;
static const struct freq_tbl ftbl_blsp1_qup_i2c_apps_clk_src[] = …;
static struct clk_rcg2 blsp1_qup1_i2c_apps_clk_src = …;
static const struct freq_tbl ftbl_blsp1_qup_spi_apps_clk_src[] = …;
static struct clk_rcg2 blsp1_qup1_spi_apps_clk_src = …;
static struct clk_rcg2 blsp1_qup2_i2c_apps_clk_src = …;
static struct clk_rcg2 blsp1_qup2_spi_apps_clk_src = …;
static struct clk_rcg2 blsp1_qup3_i2c_apps_clk_src = …;
static struct clk_rcg2 blsp1_qup3_spi_apps_clk_src = …;
static struct clk_rcg2 blsp1_qup4_i2c_apps_clk_src = …;
static struct clk_rcg2 blsp1_qup4_spi_apps_clk_src = …;
static struct clk_rcg2 blsp1_qup5_i2c_apps_clk_src = …;
static struct clk_rcg2 blsp1_qup5_spi_apps_clk_src = …;
static struct clk_rcg2 blsp1_qup6_i2c_apps_clk_src = …;
static struct clk_rcg2 blsp1_qup6_spi_apps_clk_src = …;
static const struct freq_tbl ftbl_blsp1_uart_apps_clk_src[] = …;
static struct clk_rcg2 blsp1_uart1_apps_clk_src = …;
static struct clk_rcg2 blsp1_uart2_apps_clk_src = …;
static struct clk_rcg2 blsp1_uart3_apps_clk_src = …;
static struct clk_rcg2 blsp1_uart4_apps_clk_src = …;
static struct clk_rcg2 blsp1_uart5_apps_clk_src = …;
static struct clk_rcg2 blsp1_uart6_apps_clk_src = …;
static const struct freq_tbl ftbl_crypto_clk_src[] = …;
static struct clk_rcg2 crypto_clk_src = …;
static const struct freq_tbl ftbl_gp_clk_src[] = …;
static const struct clk_parent_data gcc_xo_gpll0_gpll6_gpll0_sleep_clk[] = …;
static const struct parent_map gcc_xo_gpll0_gpll6_gpll0_sleep_clk_map[] = …;
static struct clk_rcg2 gp1_clk_src = …;
static struct clk_rcg2 gp2_clk_src = …;
static struct clk_rcg2 gp3_clk_src = …;
static struct clk_fixed_factor nss_ppe_cdiv_clk_src = …;
static struct clk_regmap_div nss_ubi0_div_clk_src = …;
static const struct freq_tbl ftbl_pcie_aux_clk_src[] = …;
static const struct clk_parent_data gcc_xo_gpll0_core_pi_sleep_clk[] = …;
static const struct parent_map gcc_xo_gpll0_core_pi_sleep_clk_map[] = …;
static struct clk_rcg2 pcie0_aux_clk_src = …;
static const struct clk_parent_data gcc_pcie20_phy0_pipe_clk_xo[] = …;
static const struct parent_map gcc_pcie20_phy0_pipe_clk_xo_map[] = …;
static struct clk_regmap_mux pcie0_pipe_clk_src = …;
static const struct freq_tbl ftbl_sdcc_apps_clk_src[] = …;
static const struct clk_parent_data
gcc_xo_gpll0_gpll2_gpll0_out_main_div2[] = …;
static const struct parent_map gcc_xo_gpll0_gpll2_gpll0_out_main_div2_map[] = …;
static struct clk_rcg2 sdcc1_apps_clk_src = …;
static const struct freq_tbl ftbl_usb_aux_clk_src[] = …;
static struct clk_rcg2 usb0_aux_clk_src = …;
static const struct freq_tbl ftbl_usb_mock_utmi_clk_src[] = …;
static const struct clk_parent_data
gcc_xo_gpll6_gpll0_gpll0_out_main_div2[] = …;
static const struct parent_map gcc_xo_gpll6_gpll0_gpll0_out_main_div2_map[] = …;
static struct clk_rcg2 usb0_mock_utmi_clk_src = …;
static const struct clk_parent_data gcc_usb3phy_0_cc_pipe_clk_xo[] = …;
static const struct parent_map gcc_usb3phy_0_cc_pipe_clk_xo_map[] = …;
static struct clk_regmap_mux usb0_pipe_clk_src = …;
static const struct freq_tbl ftbl_sdcc_ice_core_clk_src[] = …;
static const struct clk_parent_data gcc_xo_gpll0_gpll6_gpll0_div2[] = …;
static const struct parent_map gcc_xo_gpll0_gpll6_gpll0_div2_map[] = …;
static struct clk_rcg2 sdcc1_ice_core_clk_src = …;
static const struct freq_tbl ftbl_qdss_stm_clk_src[] = …;
static struct clk_rcg2 qdss_stm_clk_src = …;
static const struct freq_tbl ftbl_qdss_traceclkin_clk_src[] = …;
static const struct clk_parent_data gcc_xo_gpll4_gpll0_gpll0_div2[] = …;
static const struct parent_map gcc_xo_gpll4_gpll0_gpll0_div2_map[] = …;
static struct clk_rcg2 qdss_traceclkin_clk_src = …;
static struct clk_rcg2 usb1_mock_utmi_clk_src = …;
static struct clk_branch gcc_adss_pwm_clk = …;
static struct clk_branch gcc_apss_ahb_clk = …;
static const struct freq_tbl ftbl_system_noc_bfdcd_clk_src[] = …;
static struct clk_rcg2 system_noc_bfdcd_clk_src = …;
static const struct freq_tbl ftbl_ubi32_mem_noc_bfdcd_clk_src[] = …;
static const struct clk_parent_data
gcc_xo_gpll0_gpll2_bias_pll_nss_noc_clk[] = …;
static const struct parent_map gcc_xo_gpll0_gpll2_bias_pll_nss_noc_clk_map[] = …;
static struct clk_rcg2 ubi32_mem_noc_bfdcd_clk_src = …;
static struct clk_branch gcc_apss_axi_clk = …;
static struct clk_branch gcc_blsp1_ahb_clk = …;
static struct clk_branch gcc_blsp1_qup1_i2c_apps_clk = …;
static struct clk_branch gcc_blsp1_qup1_spi_apps_clk = …;
static struct clk_branch gcc_blsp1_qup2_i2c_apps_clk = …;
static struct clk_branch gcc_blsp1_qup2_spi_apps_clk = …;
static struct clk_branch gcc_blsp1_qup3_i2c_apps_clk = …;
static struct clk_branch gcc_blsp1_qup3_spi_apps_clk = …;
static struct clk_branch gcc_blsp1_qup4_i2c_apps_clk = …;
static struct clk_branch gcc_blsp1_qup4_spi_apps_clk = …;
static struct clk_branch gcc_blsp1_qup5_i2c_apps_clk = …;
static struct clk_branch gcc_blsp1_qup5_spi_apps_clk = …;
static struct clk_branch gcc_blsp1_qup6_i2c_apps_clk = …;
static struct clk_branch gcc_blsp1_qup6_spi_apps_clk = …;
static struct clk_branch gcc_blsp1_uart1_apps_clk = …;
static struct clk_branch gcc_blsp1_uart2_apps_clk = …;
static struct clk_branch gcc_blsp1_uart3_apps_clk = …;
static struct clk_branch gcc_blsp1_uart4_apps_clk = …;
static struct clk_branch gcc_blsp1_uart5_apps_clk = …;
static struct clk_branch gcc_blsp1_uart6_apps_clk = …;
static struct clk_branch gcc_crypto_ahb_clk = …;
static struct clk_branch gcc_crypto_axi_clk = …;
static struct clk_branch gcc_crypto_clk = …;
static struct clk_fixed_factor gpll6_out_main_div2 = …;
static struct clk_branch gcc_xo_clk = …;
static struct clk_branch gcc_gp1_clk = …;
static struct clk_branch gcc_gp2_clk = …;
static struct clk_branch gcc_gp3_clk = …;
static struct clk_branch gcc_mdio_ahb_clk = …;
static struct clk_branch gcc_crypto_ppe_clk = …;
static struct clk_branch gcc_nss_ce_apb_clk = …;
static struct clk_branch gcc_nss_ce_axi_clk = …;
static struct clk_branch gcc_nss_cfg_clk = …;
static struct clk_branch gcc_nss_crypto_clk = …;
static struct clk_branch gcc_nss_csr_clk = …;
static struct clk_branch gcc_nss_edma_cfg_clk = …;
static struct clk_branch gcc_nss_edma_clk = …;
static struct clk_branch gcc_nss_noc_clk = …;
static struct clk_branch gcc_ubi0_utcm_clk = …;
static struct clk_branch gcc_snoc_nssnoc_clk = …;
static const struct freq_tbl ftbl_wcss_ahb_clk_src[] = …;
static const struct freq_tbl ftbl_q6_axi_clk_src[] = …;
static struct clk_rcg2 wcss_ahb_clk_src = …;
static const struct clk_parent_data gcc_xo_gpll0_gpll2_gpll4_gpll6[] = …;
static const struct parent_map gcc_xo_gpll0_gpll2_gpll4_gpll6_map[] = …;
static struct clk_rcg2 q6_axi_clk_src = …;
static const struct freq_tbl ftbl_lpass_core_axim_clk_src[] = …;
static struct clk_rcg2 lpass_core_axim_clk_src = …;
static const struct freq_tbl ftbl_lpass_snoc_cfg_clk_src[] = …;
static struct clk_rcg2 lpass_snoc_cfg_clk_src = …;
static const struct freq_tbl ftbl_lpass_q6_axim_clk_src[] = …;
static struct clk_rcg2 lpass_q6_axim_clk_src = …;
static struct freq_tbl ftbl_rbcpr_wcss_clk_src[] = …;
static struct clk_rcg2 rbcpr_wcss_clk_src = …;
static struct clk_branch gcc_lpass_core_axim_clk = …;
static struct clk_branch gcc_lpass_snoc_cfg_clk = …;
static struct clk_branch gcc_lpass_q6_axim_clk = …;
static struct clk_branch gcc_lpass_q6_atbm_at_clk = …;
static struct clk_branch gcc_lpass_q6_pclkdbg_clk = …;
static struct clk_branch gcc_lpass_q6ss_tsctr_1to2_clk = …;
static struct clk_branch gcc_lpass_q6ss_trig_clk = …;
static struct clk_branch gcc_lpass_tbu_clk = …;
static struct clk_branch gcc_pcnoc_lpass_clk = …;
static struct clk_branch gcc_mem_noc_lpass_clk = …;
static struct clk_branch gcc_snoc_lpass_cfg_clk = …;
static struct clk_branch gcc_mem_noc_ubi32_clk = …;
static struct clk_branch gcc_nss_port1_rx_clk = …;
static struct clk_branch gcc_nss_port1_tx_clk = …;
static struct clk_branch gcc_nss_port2_rx_clk = …;
static struct clk_branch gcc_nss_port2_tx_clk = …;
static struct clk_branch gcc_nss_port3_rx_clk = …;
static struct clk_branch gcc_nss_port3_tx_clk = …;
static struct clk_branch gcc_nss_port4_rx_clk = …;
static struct clk_branch gcc_nss_port4_tx_clk = …;
static struct clk_branch gcc_nss_port5_rx_clk = …;
static struct clk_branch gcc_nss_port5_tx_clk = …;
static struct clk_branch gcc_nss_ppe_cfg_clk = …;
static struct clk_branch gcc_nss_ppe_clk = …;
static struct clk_branch gcc_nss_ppe_ipe_clk = …;
static struct clk_branch gcc_nss_ptp_ref_clk = …;
static struct clk_branch gcc_nssnoc_ce_apb_clk = …;
static struct clk_branch gcc_nssnoc_ce_axi_clk = …;
static struct clk_branch gcc_nssnoc_crypto_clk = …;
static struct clk_branch gcc_nssnoc_ppe_cfg_clk = …;
static struct clk_branch gcc_nssnoc_ppe_clk = …;
static struct clk_branch gcc_nssnoc_qosgen_ref_clk = …;
static struct clk_branch gcc_nssnoc_snoc_clk = …;
static struct clk_branch gcc_nssnoc_timeout_ref_clk = …;
static struct clk_branch gcc_nssnoc_ubi0_ahb_clk = …;
static struct clk_branch gcc_port1_mac_clk = …;
static struct clk_branch gcc_port2_mac_clk = …;
static struct clk_branch gcc_port3_mac_clk = …;
static struct clk_branch gcc_port4_mac_clk = …;
static struct clk_branch gcc_port5_mac_clk = …;
static struct clk_branch gcc_ubi0_ahb_clk = …;
static struct clk_branch gcc_ubi0_axi_clk = …;
static struct clk_branch gcc_ubi0_nc_axi_clk = …;
static struct clk_branch gcc_ubi0_core_clk = …;
static struct clk_branch gcc_pcie0_ahb_clk = …;
static struct clk_branch gcc_pcie0_aux_clk = …;
static struct clk_branch gcc_pcie0_axi_m_clk = …;
static struct clk_branch gcc_pcie0_axi_s_clk = …;
static struct clk_branch gcc_sys_noc_pcie0_axi_clk = …;
static struct clk_branch gcc_pcie0_pipe_clk = …;
static struct clk_branch gcc_prng_ahb_clk = …;
static struct clk_branch gcc_qdss_at_clk = …;
static struct clk_branch gcc_qdss_dap_clk = …;
static struct clk_branch gcc_qpic_ahb_clk = …;
static struct clk_branch gcc_qpic_clk = …;
static struct clk_branch gcc_sdcc1_ahb_clk = …;
static struct clk_branch gcc_sdcc1_apps_clk = …;
static struct clk_branch gcc_uniphy0_ahb_clk = …;
static struct clk_branch gcc_uniphy0_port1_rx_clk = …;
static struct clk_branch gcc_uniphy0_port1_tx_clk = …;
static struct clk_branch gcc_uniphy0_port2_rx_clk = …;
static struct clk_branch gcc_uniphy0_port2_tx_clk = …;
static struct clk_branch gcc_uniphy0_port3_rx_clk = …;
static struct clk_branch gcc_uniphy0_port3_tx_clk = …;
static struct clk_branch gcc_uniphy0_port4_rx_clk = …;
static struct clk_branch gcc_uniphy0_port4_tx_clk = …;
static struct clk_branch gcc_uniphy0_port5_rx_clk = …;
static struct clk_branch gcc_uniphy0_port5_tx_clk = …;
static struct clk_branch gcc_uniphy0_sys_clk = …;
static struct clk_branch gcc_uniphy1_ahb_clk = …;
static struct clk_branch gcc_uniphy1_port5_rx_clk = …;
static struct clk_branch gcc_uniphy1_port5_tx_clk = …;
static struct clk_branch gcc_uniphy1_sys_clk = …;
static struct clk_branch gcc_usb0_aux_clk = …;
static struct clk_branch gcc_usb0_master_clk = …;
static struct clk_branch gcc_snoc_bus_timeout2_ahb_clk = …;
static struct clk_rcg2 pcie0_rchng_clk_src = …;
static struct clk_branch gcc_pcie0_rchng_clk = …;
static struct clk_branch gcc_pcie0_axi_s_bridge_clk = …;
static struct clk_branch gcc_sys_noc_usb0_axi_clk = …;
static struct clk_branch gcc_usb0_mock_utmi_clk = …;
static struct clk_branch gcc_usb0_phy_cfg_ahb_clk = …;
static struct clk_branch gcc_usb0_pipe_clk = …;
static struct clk_branch gcc_usb0_sleep_clk = …;
static struct clk_branch gcc_usb1_master_clk = …;
static struct clk_branch gcc_usb1_mock_utmi_clk = …;
static struct clk_branch gcc_usb1_phy_cfg_ahb_clk = …;
static struct clk_branch gcc_usb1_sleep_clk = …;
static struct clk_branch gcc_cmn_12gpll_ahb_clk = …;
static struct clk_branch gcc_cmn_12gpll_sys_clk = …;
static struct clk_branch gcc_sdcc1_ice_core_clk = …;
static struct clk_branch gcc_dcc_clk = …;
static const struct alpha_pll_config ubi32_pll_config = …;
static const struct alpha_pll_config nss_crypto_pll_config = …;
static struct clk_hw *gcc_ipq6018_hws[] = …;
static struct clk_regmap *gcc_ipq6018_clks[] = …;
static const struct qcom_reset_map gcc_ipq6018_resets[] = …;
static const struct of_device_id gcc_ipq6018_match_table[] = …;
MODULE_DEVICE_TABLE(of, gcc_ipq6018_match_table);
static const struct regmap_config gcc_ipq6018_regmap_config = …;
static const struct qcom_cc_desc gcc_ipq6018_desc = …;
static int gcc_ipq6018_probe(struct platform_device *pdev)
{ … }
static struct platform_driver gcc_ipq6018_driver = …;
static int __init gcc_ipq6018_init(void)
{ … }
core_initcall(gcc_ipq6018_init);
static void __exit gcc_ipq6018_exit(void)
{ … }
module_exit(gcc_ipq6018_exit);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;