2014-05-09 11:35:53

by Arnd Bergmann

[permalink] [raw]
Subject: [PATCH] crypto: s5p-sss: fix multiplatform build

As we are preparing to enable multiplatform support on EXYNOS,
we can no longer include mach/*.h or plat/*.h headers from device
drivers.

The s5p-sss driver was just enabled for EXYNOS when it used to
be used only on s5pv210, and it includes two samsung platform
specific header files for historic reasons. Fortunately, it no
longer actually needs them, so we can remove the #includes and
avoid the problem

Signed-off-by: Arnd Bergmann <[email protected]>
Cc: Naveen Krishna Chatradhi <[email protected]>
Cc: Tomasz Figa <[email protected]>
Cc: <[email protected]>
Cc: Vladimir Zapolskiy <[email protected]>
Cc: Herbert Xu <[email protected]>
---
Please apply on top of the other s5p-sss patches

diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c
index 47c568e..4197ad9 100644
--- a/drivers/crypto/s5p-sss.c
+++ b/drivers/crypto/s5p-sss.c
@@ -30,9 +30,6 @@
#include <crypto/aes.h>
#include <crypto/ctr.h>

-#include <plat/cpu.h>
-#include <mach/dma.h>
-
#define _SBF(s, v) ((v) << (s))
#define _BIT(b) _SBF(b, 1)



2014-05-12 02:31:05

by Jingoo Han

[permalink] [raw]
Subject: Re: [PATCH] crypto: s5p-sss: fix multiplatform build

On Friday, May 09, 2014 8:36 PM, Arnd Bergmann wrote:
>
> As we are preparing to enable multiplatform support on EXYNOS,
> we can no longer include mach/*.h or plat/*.h headers from device
> drivers.
>
> The s5p-sss driver was just enabled for EXYNOS when it used to
> be used only on s5pv210, and it includes two samsung platform
> specific header files for historic reasons. Fortunately, it no
> longer actually needs them, so we can remove the #includes and
> avoid the problem
>
> Signed-off-by: Arnd Bergmann <[email protected]>
> Cc: Naveen Krishna Chatradhi <[email protected]>
> Cc: Tomasz Figa <[email protected]>
> Cc: <[email protected]>
> Cc: Vladimir Zapolskiy <[email protected]>
> Cc: Herbert Xu <[email protected]>

I checked that these machine specific headers are
unnecessary. Thanks!

Reviewed-by: Jingoo Han <[email protected]>

Best regards,
Jingoo Han

> ---
> Please apply on top of the other s5p-sss patches
>
> diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c
> index 47c568e..4197ad9 100644
> --- a/drivers/crypto/s5p-sss.c
> +++ b/drivers/crypto/s5p-sss.c
> @@ -30,9 +30,6 @@
> #include <crypto/aes.h>
> #include <crypto/ctr.h>
>
> -#include <plat/cpu.h>
> -#include <mach/dma.h>
> -
> #define _SBF(s, v) ((v) << (s))
> #define _BIT(b) _SBF(b, 1)
>
>
> --

2014-05-13 11:45:26

by Herbert Xu

[permalink] [raw]
Subject: Re: [PATCH] crypto: s5p-sss: fix multiplatform build

On Mon, May 12, 2014 at 11:31:05AM +0900, Jingoo Han wrote:
> On Friday, May 09, 2014 8:36 PM, Arnd Bergmann wrote:
> >
> > As we are preparing to enable multiplatform support on EXYNOS,
> > we can no longer include mach/*.h or plat/*.h headers from device
> > drivers.
> >
> > The s5p-sss driver was just enabled for EXYNOS when it used to
> > be used only on s5pv210, and it includes two samsung platform
> > specific header files for historic reasons. Fortunately, it no
> > longer actually needs them, so we can remove the #includes and
> > avoid the problem
> >
> > Signed-off-by: Arnd Bergmann <[email protected]>
> > Cc: Naveen Krishna Chatradhi <[email protected]>
> > Cc: Tomasz Figa <[email protected]>
> > Cc: <[email protected]>
> > Cc: Vladimir Zapolskiy <[email protected]>
> > Cc: Herbert Xu <[email protected]>
>
> I checked that these machine specific headers are
> unnecessary. Thanks!
>
> Reviewed-by: Jingoo Han <[email protected]>

Patch applied. Thanks!
--
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt