summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorMark A. Greer <mgreer@animalcreek.com>2013-01-15 21:53:02 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2013-01-20 00:16:46 +0100
commitc3c3b3292d202e9924fb3af0f4139848fd7e1de0 (patch)
treea6c39b805894bde42738f8b445d71234d08453fe /drivers/crypto
parentcrypto: crc32 - add crc32 pclmulqdq implementation and wrappers for table imp... (diff)
downloadlinux-c3c3b3292d202e9924fb3af0f4139848fd7e1de0.tar.xz
linux-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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c
index edff981edfb1..dc2d354219c6 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;