ar71xx: Add support for the OMYlink OMY-X1
[openwrt/openwrt.git] / target / linux / ar71xx / files / arch / mips / ath79 / dev-nfc.c
index d140cd0eab1f878541e8afb63e092c63696524e5..9b5256ecc214978605d4ca74de3d38d924ad0f7e 100644 (file)
@@ -43,7 +43,7 @@ static void __init ath79_nfc_init_resource(struct resource res[2],
                                           unsigned long size,
                                           int irq)
 {
-       memset(res, 0, sizeof(res));
+       memset(res, 0, sizeof(struct resource) * 2);
 
        res[0].flags = IORESOURCE_MEM;
        res[0].start = base;