]> xenbits.xensource.com Git - people/aperard/linux-arndale.git/commitdiff
NET: eth: ax88796: fixup for LPAE
authorSubash Patel <subash.rp@samsung.com>
Tue, 4 Dec 2012 12:35:18 +0000 (18:05 +0530)
committerVasanth Ananthan <vasanthananthan@gmail.com>
Tue, 8 Jan 2013 10:34:45 +0000 (16:04 +0530)
This patch adds condition for variables declared of type
resource_size_t. When LPAE is enabled, these will be 64-bit,
but the linker will throw error for missing __aeabi_uldivmod
support in lib1funcs.s. This patch may be safetly reverted
when this is added.

Signed-off-by: Subash Patel <subash.rp@samsung.com>
drivers/net/ethernet/8390/ax88796.c

index 203ff9dccadb03206a20f96ea1e71437a98be3be..a81c8882755bb403dd229723716a1f9eea3b698f 100644 (file)
@@ -828,7 +828,14 @@ static int ax_probe(struct platform_device *pdev)
        struct ei_device *ei_local;
        struct ax_device *ax;
        struct resource *irq, *mem, *mem2;
+#ifndef CONFIG_ARM_LPAE
+       /* LPAE breaks this code as __aeabi_uldivmod for 64-bit
+        * is not supported in lib1funcs.s yet
+        */
        resource_size_t mem_size, mem2_size = 0;
+#else
+       u32 mem_size, mem2_size = 0;
+#endif
        int ret = 0;
 
        dev = ax__alloc_ei_netdev(sizeof(struct ax_device));