Re: [PATCH v3 3/3] mmc: sdhci-of-arasan: add runtime pm support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Shawn,

[auto build test ERROR on ulf.hansson-mmc/next -- if it's inappropriate base, please suggest rules for selecting the more suitable base]

url:    https://github.com/0day-ci/linux/commits/Shawn-Lin/Documentation-bindings-add-description-of-phy-for-sdhci-of-arasan/20151020-150853
config: i386-randconfig-i1-201542 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/mmc/host/sdhci-of-arasan.c: In function 'sdhci_arasan_runtime_suspend':
>> drivers/mmc/host/sdhci-of-arasan.c:202:9: error: implicit declaration of function 'sdhci_arasan_suspend_phy' [-Werror=implicit-function-declaration]
      ret = sdhci_arasan_suspend_phy(sdhci_arasan->phy);
            ^
   drivers/mmc/host/sdhci-of-arasan.c: In function 'sdhci_arasan_runtime_resume':
>> drivers/mmc/host/sdhci-of-arasan.c:227:9: error: implicit declaration of function 'sdhci_arasan_resume_phy' [-Werror=implicit-function-declaration]
      ret = sdhci_arasan_resume_phy(sdhci_arasan->phy);
            ^
   cc1: some warnings being treated as errors

vim +/sdhci_arasan_suspend_phy +202 drivers/mmc/host/sdhci-of-arasan.c

   196	
   197		ret = sdhci_runtime_suspend_host(host);
   198		if (ret)
   199			return ret;
   200	
   201		if (!IS_ERR(sdhci_arasan->phy)) {
 > 202			ret = sdhci_arasan_suspend_phy(sdhci_arasan->phy);
   203			if (ret) {
   204				dev_err(dev, "Cannot suspend phy at runtime.\n");
   205				sdhci_runtime_resume_host(host);
   206				return ret;
   207			}
   208		}
   209	
   210		clk_disable_unprepare(sdhci_arasan->clk_ahb);
   211		clk_disable_unprepare(pltfm_host->clk);
   212	
   213		return 0;
   214	}
   215	
   216	static int sdhci_arasan_runtime_resume(struct device *dev)
   217	{
   218		struct sdhci_host *host = dev_get_drvdata(dev);
   219		struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
   220		struct sdhci_arasan_data *sdhci_arasan = pltfm_host->priv;
   221		int ret;
   222	
   223		clk_prepare_enable(pltfm_host->clk);
   224		clk_prepare_enable(sdhci_arasan->clk_ahb);
   225	
   226		if (!IS_ERR(sdhci_arasan->phy)) {
 > 227			ret = sdhci_arasan_resume_phy(sdhci_arasan->phy);
   228			if (ret) {
   229				dev_err(dev, "Cannot resume phy at runtime.\n");
   230				clk_disable_unprepare(sdhci_arasan->clk_ahb);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux