On 08. 10. 20 4:09, muhammad.husaini.zulki...@intel.com wrote: > From: Muhammad Husaini Zulkifli <muhammad.husaini.zulki...@intel.com> > > Add struct device *dev in probe func() so that it can widely use in > probe to make code more readable. > > Signed-off-by: Muhammad Husaini Zulkifli <muhammad.husaini.zulki...@intel.com> > --- > drivers/mmc/host/sdhci-of-arasan.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mmc/host/sdhci-of-arasan.c > b/drivers/mmc/host/sdhci-of-arasan.c > index f186fbd016b1..46aea6516133 100644 > --- a/drivers/mmc/host/sdhci-of-arasan.c > +++ b/drivers/mmc/host/sdhci-of-arasan.c > @@ -1521,6 +1521,7 @@ static int sdhci_arasan_probe(struct platform_device > *pdev) > struct sdhci_pltfm_host *pltfm_host; > struct sdhci_arasan_data *sdhci_arasan; > struct device_node *np = pdev->dev.of_node; > + struct device *dev = &pdev->dev; > const struct sdhci_arasan_of_data *data; > > match = of_match_node(sdhci_arasan_of_match, pdev->dev.of_node); > This is not what we discussed. You create new variable and you should just use it in that function. s/pdev->dev\./dev->/g Thanks, Michal
- [PATCH v4 0/4] mmc: sdhci-of-arasan: Enable ... muhammad . husaini . zulkifli
- [PATCH v4 1/4] firmware: keembay: Add s... muhammad . husaini . zulkifli
- Re: [PATCH v4 1/4] firmware: keemba... Michal Simek
- Re: [PATCH v4 1/4] firmware: keemba... Andy Shevchenko
- RE: [PATCH v4 1/4] firmware: ke... Zulkifli, Muhammad Husaini
- Re: [PATCH v4 1/4] firmware: keemba... Sudeep Holla
- RE: [PATCH v4 1/4] firmware: ke... Zulkifli, Muhammad Husaini
- [PATCH v4 2/4] dt-bindings: mmc: Add uh... muhammad . husaini . zulkifli
- Re: [PATCH v4 2/4] dt-bindings: mmc... Michal Simek
- [PATCH v4 3/4] mmc: sdhci-of-arasan: Ad... muhammad . husaini . zulkifli
- Re: [PATCH v4 3/4] mmc: sdhci-of-ar... Michal Simek
- RE: [PATCH v4 3/4] mmc: sdhci-o... Zulkifli, Muhammad Husaini
- Re: [PATCH v4 3/4] mmc: sdh... Andy Shevchenko
- [PATCH v4 4/4] mmc: sdhci-of-arasan: En... muhammad . husaini . zulkifli
- Re: [PATCH v4 4/4] mmc: sdhci-of-ar... Michal Simek
- Re: [PATCH v4 4/4] mmc: sdhci-of-ar... Ulf Hansson
- RE: [PATCH v4 4/4] mmc: sdhci-o... Zulkifli, Muhammad Husaini
- Re: [PATCH v4 4/4] mmc: sdh... Ulf Hansson
- RE: [PATCH v4 4/4] mmc... Zulkifli, Muhammad Husaini
- Re: [PATCH v4 4/4]... Ulf Hansson
- Re: [PATCH v4 ... Michal Simek