diff mbox

[v11,1/7] mmc: omap_hsmmc: compile fix for !CONFIG_OF build

Message ID 1399591234-13089-1-git-send-email-afenkart@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Andreas Fenkart May 8, 2014, 11:20 p.m. UTC
Signed-off-by: Andreas Fenkart <afenkart@gmail.com>

Comments

Sebastian Reichel May 8, 2014, 11:48 p.m. UTC | #1
On Fri, May 09, 2014 at 01:20:28AM +0200, Andreas Fenkart wrote:
> Signed-off-by: Andreas Fenkart <afenkart@gmail.com>
> 
> diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
> index 8d07e2b..5042a15 100644
> --- a/drivers/mmc/host/omap_hsmmc.c
> +++ b/drivers/mmc/host/omap_hsmmc.c
> @@ -1864,6 +1864,7 @@ static inline struct omap_mmc_platform_data
>  {
>  	return ERR_PTR(-EINVAL);
>  }
> +#define omap_mmc_of_match      NULL
>  #endif
>  
>  static int omap_hsmmc_probe(struct platform_device *pdev)

What do you need this for? omap_hsmmc.c uses of_match_ptr() to
access omap_mmc_of_match, which is a macro returning NULL for
!CONFIG_OF.

-- Sebastian
diff mbox

Patch

diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index 8d07e2b..5042a15 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -1864,6 +1864,7 @@  static inline struct omap_mmc_platform_data
 {
 	return ERR_PTR(-EINVAL);
 }
+#define omap_mmc_of_match      NULL
 #endif
 
 static int omap_hsmmc_probe(struct platform_device *pdev)