diff options
author | Mark A. Greer <mgreer@animalcreek.com> | 2013-01-15 15:53:02 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-01-19 18:16:46 -0500 |
commit | c3c3b3292d202e9924fb3af0f4139848fd7e1de0 (patch) | |
tree | a6c39b805894bde42738f8b445d71234d08453fe /drivers/crypto/omap-sham.c | |
parent | 78c37d191dd6899d8c219fee597a17d6e3c5d288 (diff) |
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/omap-sham.c')
-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 edff981edfb1..dc2d354219c6 100644 --- a/drivers/crypto/omap-sham.c +++ b/drivers/crypto/omap-sham.c | |||
@@ -1607,7 +1607,11 @@ err: | |||
1607 | return err; | 1607 | return err; |
1608 | } | 1608 | } |
1609 | #else | 1609 | #else |
1610 | static int omap_sham_get_res_dev(struct omap_sham_dev *dd, | 1610 | static const struct of_device_id omap_sham_of_match[] = { |
1611 | {}, | ||
1612 | }; | ||
1613 | |||
1614 | static int omap_sham_get_res_of(struct omap_sham_dev *dd, | ||
1611 | struct device *dev, struct resource *res) | 1615 | struct device *dev, struct resource *res) |
1612 | { | 1616 | { |
1613 | return -EINVAL; | 1617 | return -EINVAL; |