> -----Original Message----- > From: Leonard Crestez <leonard.crestez@xxxxxxx> > Sent: Thursday, July 4, 2019 3:53 AM > To: Shawn Guo <shawnguo@xxxxxxxxxx>; Will Deacon <will@xxxxxxxxxx>; Frank > Li <frank.li@xxxxxxx> > Cc: Rob Herring <robh+dt@xxxxxxxxxx>; Andrey Smirnov > <andrew.smirnov@xxxxxxxxx>; Mark Rutland <mark.rutland@xxxxxxx>; > Aisheng Dong <aisheng.dong@xxxxxxx>; Fabio Estevam > <fabio.estevam@xxxxxxx>; Jacky Bai <ping.bai@xxxxxxx>; > devicetree@xxxxxxxxxxxxxxx; kernel@xxxxxxxxxxxxxx; dl-linux-imx <linux- > imx@xxxxxxx>; linux-arm-kernel@xxxxxxxxxxxxxxxxxxx > Subject: [PATCH 1/3] perf/imx_ddr: Add MODULE_DEVICE_TABLE > > This is required for automatic probing when driver is built as a module. > > Fixes: 9a66d36cc7ac ("drivers/perf: imx_ddr: Add DDR performance counter > support to perf") > Signed-off-by: Leonard Crestez <leonard.crestez@xxxxxxx> Acked-by: Frank Li <frank.li@xxxxxxx> > --- > drivers/perf/fsl_imx8_ddr_perf.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/perf/fsl_imx8_ddr_perf.c b/drivers/perf/fsl_imx8_ddr_perf.c > index 63fe21600072..0e3310dbb145 100644 > --- a/drivers/perf/fsl_imx8_ddr_perf.c > +++ b/drivers/perf/fsl_imx8_ddr_perf.c > @@ -45,10 +45,11 @@ static DEFINE_IDA(ddr_ida); static const struct > of_device_id imx_ddr_pmu_dt_ids[] = { > { .compatible = "fsl,imx8-ddr-pmu",}, > { .compatible = "fsl,imx8m-ddr-pmu",}, > { /* sentinel */ } > }; > +MODULE_DEVICE_TABLE(of, imx_ddr_pmu_dt_ids); > > struct ddr_pmu { > struct pmu pmu; > void __iomem *base; > unsigned int cpu; > -- > 2.17.1