* [PATCH 12/17] crypto: talitos - Define compatible in talitos2.h instead of talitos.c
@ 2015-03-05 16:46 Christophe Leroy
0 siblings, 0 replies; only message in thread
From: Christophe Leroy @ 2015-03-05 16:46 UTC (permalink / raw)
To: Kim Phillips, Herbert Xu, David S. Miller
Cc: linuxppc-dev, linux-kernel, linux-crypto
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
---
drivers/crypto/talitos.c | 4 +---
drivers/crypto/talitos2.h | 2 ++
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c
index 6c1f6f1..9f75ec9 100644
--- a/drivers/crypto/talitos.c
+++ b/drivers/crypto/talitos.c
@@ -1979,9 +1979,7 @@ err_out:
}
static const struct of_device_id talitos_match[] = {
- {
- .compatible = "fsl,sec2.0",
- },
+ TALITOS_OF_COMPATIBLE,
{},
};
MODULE_DEVICE_TABLE(of, talitos_match);
diff --git a/drivers/crypto/talitos2.h b/drivers/crypto/talitos2.h
index 7edc563..7177088 100644
--- a/drivers/crypto/talitos2.h
+++ b/drivers/crypto/talitos2.h
@@ -316,3 +316,5 @@ static irqreturn_t talitos_interrupt_##name(int irq, void *data) \
return (isr & (ch_done_mask | ch_err_mask) || isr_lo) ? IRQ_HANDLED : \
IRQ_NONE; \
}
+
+#define TALITOS_OF_COMPATIBLE {.compatible = "fsl,sec2.0",}
--
2.1.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-05 16:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-05 16:46 [PATCH 12/17] crypto: talitos - Define compatible in talitos2.h instead of talitos.c Christophe Leroy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).