1
0
Fork 0

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: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
hifive-unleashed-5.1
Mark A. Greer 2013-01-15 13:53:02 -07:00 committed by Herbert Xu
parent 78c37d191d
commit c3c3b3292d
1 changed files with 5 additions and 1 deletions

View File

@ -1607,7 +1607,11 @@ err:
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;