Changeset 11966


Ignore:
Timestamp:
2008-07-28T09:25:40+02:00 (10 years ago)
Author:
juhosg
Message:

[adm5120] make use DMA_BIT_MASK

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/adm5120/files/arch/mips/adm5120/platform.c

    r11402 r11966  
    1717#include <linux/list.h> 
    1818#include <linux/device.h> 
     19#include <linux/dma-mapping.h> 
    1920#include <linux/platform_device.h> 
    2021 
     
    9091}; 
    9192 
    92 static u64 adm5120_hcd_dma_mask = ~(u32)0; 
    93  
     93static u64 adm5120_hcd_dma_mask = DMA_BIT_MASK(24); 
    9494struct platform_device adm5120_hcd_device = { 
    9595        .name           = "adm5120-hcd", 
    96         .id             = 0, 
     96        .id             = -1, 
    9797        .num_resources  = ARRAY_SIZE(adm5120_hcd_resources), 
    9898        .resource       = adm5120_hcd_resources, 
    9999        .dev = { 
    100100                .dma_mask       = &adm5120_hcd_dma_mask, 
    101                 .coherent_dma_mask = 0xFFFFFFFF, 
     101                .coherent_dma_mask = DMA_BIT_MASK(24), 
    102102        } 
    103103}; 
Note: See TracChangeset for help on using the changeset viewer.