crypto: tegra-se: fix suspend routine hookup
authorChris Johnson <cwj@nvidia.com>
Fri, 2 Dec 2011 19:51:25 +0000 (11:51 -0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 8 Dec 2011 12:38:38 +0000 (17:38 +0530)
commit93dc60921bc85edbc2cb523220a759a9d2be1b6a
treef58e90839fdc3918f122df80732f22ea1b2e0072
parent33c9bbe38a93f618c543754b06d05f976b88c0f2
crypto: tegra-se: fix suspend routine hookup

In platform_pm_suspend, if there's a dev->driver->pm struct,
it expects the suspend routine to be filled in there.

With a pm struct, it won't use the platform_legacy_suspend
path, which is how tegra_se_suspend had been hooked up. This
change just moves suspend/resume into the pm ops struct.

Bug 883391

Change-Id: Iee8245676ba104d2e4cc0f2f2ffe406674cb1d5b
Signed-off-by: Chris Johnson <cwj@nvidia.com>
Reviewed-on: http://git-master/r/67989
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
drivers/crypto/tegra-se.c