提交 c3c3b329 编写于 作者: M Mark A. Greer 提交者: Herbert Xu

crypto: omap-sham - Fix compile errors when CONFIG_OF not defined

Fix the compile errors created by commit 2545e8d
(crypto: omap-sham - Add Device Tree Support)
when CONFIG_OF is not defined.  This includes
changing omap_sham_get_res_dev() to omap_sham_get_res_of()
and creating an empty version of omap_sham_of_match[].
Signed-off-by: NMark A. Greer <mgreer@animalcreek.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 78c37d19
......@@ -1607,7 +1607,11 @@ static int omap_sham_get_res_of(struct omap_sham_dev *dd,
return err;
}
#else
static int omap_sham_get_res_dev(struct omap_sham_dev *dd,
static const struct of_device_id omap_sham_of_match[] = {
{},
};
static int omap_sham_get_res_of(struct omap_sham_dev *dd,
struct device *dev, struct resource *res)
{
return -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册