diff options
author | Mark A. Greer <mgreer@animalcreek.com> | 2013-01-15 13:53:02 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-01-20 10:16:46 +1100 |
commit | c3c3b3292d202e9924fb3af0f4139848fd7e1de0 (patch) | |
tree | a6c39b805894bde42738f8b445d71234d08453fe /drivers/crypto | |
parent | 78c37d191dd6899d8c219fee597a17d6e3c5d288 (diff) | |
download | linux-3.10-c3c3b3292d202e9924fb3af0f4139848fd7e1de0.tar.gz linux-3.10-c3c3b3292d202e9924fb3af0f4139848fd7e1de0.tar.bz2 linux-3.10-c3c3b3292d202e9924fb3af0f4139848fd7e1de0.zip |
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>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/omap-sham.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c index edff981edfb..dc2d354219c 100644 --- a/drivers/crypto/omap-sham.c +++ b/drivers/crypto/omap-sham.c @@ -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; |