* [PATCH] pcmcia/at91_cf: don't redefine SZ_2K
@ 2009-12-20 21:10 Uwe Kleine-König
2009-12-22 15:28 ` Russell King - ARM Linux
0 siblings, 1 reply; 7+ messages in thread
From: Uwe Kleine-König @ 2009-12-20 21:10 UTC (permalink / raw)
To: linux-arm-kernel
This fixes:
drivers/pcmcia/at91_cf.c:55:1: warning: "SZ_2K" redefined
Since
c1191b0 ([ARM] Kirkwood: create a mapping for the Security Accelerator SRAM)
SZ_2K is defined in arch/arm/include/asm/sizes.h.
Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
---
drivers/pcmcia/at91_cf.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/pcmcia/at91_cf.c b/drivers/pcmcia/at91_cf.c
index e1dcced..5d22807 100644
--- a/drivers/pcmcia/at91_cf.c
+++ b/drivers/pcmcia/at91_cf.c
@@ -52,8 +52,6 @@ struct at91_cf_socket {
unsigned long phys_baseaddr;
};
-#define SZ_2K (2 * SZ_1K)
-
static inline int at91_cf_present(struct at91_cf_socket *cf)
{
return !gpio_get_value(cf->board->det_pin);
--
1.6.5.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH] pcmcia/at91_cf: don't redefine SZ_2K
2009-12-20 21:10 [PATCH] pcmcia/at91_cf: don't redefine SZ_2K Uwe Kleine-König
@ 2009-12-22 15:28 ` Russell King - ARM Linux
2009-12-22 16:28 ` Uwe Kleine-König
0 siblings, 1 reply; 7+ messages in thread
From: Russell King - ARM Linux @ 2009-12-22 15:28 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, Dec 20, 2009 at 10:10:34PM +0100, Uwe Kleine-K?nig wrote:
> This fixes:
>
> drivers/pcmcia/at91_cf.c:55:1: warning: "SZ_2K" redefined
>
> Since
>
> c1191b0 ([ARM] Kirkwood: create a mapping for the Security Accelerator SRAM)
Have you checked whether everything which uses at91_cf still builds after
this patch has been applied (eg, AVR32 stuff?)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] pcmcia/at91_cf: don't redefine SZ_2K
2009-12-22 15:28 ` Russell King - ARM Linux
@ 2009-12-22 16:28 ` Uwe Kleine-König
2009-12-23 20:26 ` Andrew Victor
0 siblings, 1 reply; 7+ messages in thread
From: Uwe Kleine-König @ 2009-12-22 16:28 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Dec 22, 2009 at 03:28:27PM +0000, Russell King - ARM Linux wrote:
> On Sun, Dec 20, 2009 at 10:10:34PM +0100, Uwe Kleine-K?nig wrote:
> > This fixes:
> >
> > drivers/pcmcia/at91_cf.c:55:1: warning: "SZ_2K" redefined
> >
> > Since
> >
> > c1191b0 ([ARM] Kirkwood: create a mapping for the Security Accelerator SRAM)
>
> Have you checked whether everything which uses at91_cf still builds after
> this patch has been applied (eg, AVR32 stuff?)
I wasn't aware that the driver is used on AVR32, too.
Hmmmm, drivers/pcmcia/Kconfig has:
config AT91_CF
tristate "AT91 CompactFlash Controller"
depends on PCMCIA && ARCH_AT91RM9200
...
So unless ARCH_AT91RM9200 is used on AVR32 there is no problem.
Moreover AVR32 doesn't seem to provide <asm/sizes.h>.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] pcmcia/at91_cf: don't redefine SZ_2K
2009-12-22 16:28 ` Uwe Kleine-König
@ 2009-12-23 20:26 ` Andrew Victor
2010-01-22 16:56 ` Uwe Kleine-König
0 siblings, 1 reply; 7+ messages in thread
From: Andrew Victor @ 2009-12-23 20:26 UTC (permalink / raw)
To: linux-arm-kernel
hi,
>> Have you checked whether everything which uses at91_cf still builds after
>> this patch has been applied (eg, AVR32 stuff?)
> I wasn't aware that the driver is used on AVR32, too.
I don't think the AVR32 arch uses this driver. So the patch should be
fine to apply.
Regards,
Andrew Victor
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] pcmcia/at91_cf: don't redefine SZ_2K
2009-12-23 20:26 ` Andrew Victor
@ 2010-01-22 16:56 ` Uwe Kleine-König
2010-01-22 18:50 ` Andrew Victor
0 siblings, 1 reply; 7+ messages in thread
From: Uwe Kleine-König @ 2010-01-22 16:56 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Dec 23, 2009 at 10:26:56PM +0200, Andrew Victor wrote:
> hi,
> >> Have you checked whether everything which uses at91_cf still builds after
> >> this patch has been applied (eg, AVR32 stuff?)
>
> > I wasn't aware that the driver is used on AVR32, too.
>
> I don't think the AVR32 arch uses this driver. So the patch should be
> fine to apply.
I assume this is an Ack?
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] pcmcia/at91_cf: don't redefine SZ_2K
2010-01-22 16:56 ` Uwe Kleine-König
@ 2010-01-22 18:50 ` Andrew Victor
2010-01-22 19:13 ` Uwe Kleine-König
0 siblings, 1 reply; 7+ messages in thread
From: Andrew Victor @ 2010-01-22 18:50 UTC (permalink / raw)
To: linux-arm-kernel
hi,
>> I don't think the AVR32 arch uses this driver. ?So the patch should be
>> fine to apply.
> I assume this is an Ack?
Sure.
Acked-by: Andrew Victor <linux@maxim.org.za>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] pcmcia/at91_cf: don't redefine SZ_2K
2010-01-22 18:50 ` Andrew Victor
@ 2010-01-22 19:13 ` Uwe Kleine-König
0 siblings, 0 replies; 7+ messages in thread
From: Uwe Kleine-König @ 2010-01-22 19:13 UTC (permalink / raw)
To: linux-arm-kernel
This fixes:
drivers/pcmcia/at91_cf.c:55:1: warning: "SZ_2K" redefined
Since
c1191b0 ([ARM] Kirkwood: create a mapping for the Security Accelerator SRAM)
SZ_2K is defined in arch/arm/include/asm/sizes.h.
Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
Acked-by: Andrew Victor <linux@maxim.org.za>
---
drivers/pcmcia/at91_cf.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/pcmcia/at91_cf.c b/drivers/pcmcia/at91_cf.c
index e1dcced..5d22807 100644
--- a/drivers/pcmcia/at91_cf.c
+++ b/drivers/pcmcia/at91_cf.c
@@ -52,8 +52,6 @@ struct at91_cf_socket {
unsigned long phys_baseaddr;
};
-#define SZ_2K (2 * SZ_1K)
-
static inline int at91_cf_present(struct at91_cf_socket *cf)
{
return !gpio_get_value(cf->board->det_pin);
--
1.6.6
^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-01-22 19:13 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-20 21:10 [PATCH] pcmcia/at91_cf: don't redefine SZ_2K Uwe Kleine-König
2009-12-22 15:28 ` Russell King - ARM Linux
2009-12-22 16:28 ` Uwe Kleine-König
2009-12-23 20:26 ` Andrew Victor
2010-01-22 16:56 ` Uwe Kleine-König
2010-01-22 18:50 ` Andrew Victor
2010-01-22 19:13 ` Uwe Kleine-König
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).