Skip to content

Commit

Permalink
crypto: omap-sham - Fix compile errors when CONFIG_OF not defined
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
mgreeraz authored and herbertx committed Jan 19, 2013
1 parent 78c37d1 commit c3c3b32
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/crypto/omap-sham.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c3c3b32

Please sign in to comment.