Changeset 8188


Ignore:
Timestamp:
2007-07-27T02:59:50+02:00 (11 years ago)
Author:
nico
Message:

cosmetic fix (indent and use c-style comments)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c

    r8141 r8188  
    290290int vlynq_device_enable(struct vlynq_device *dev) 
    291291{ 
    292     u32 div; 
     292        u32 div; 
    293293        int result; 
    294294        struct plat_vlynq_ops *ops = dev->dev.platform_data; 
     
    301301        dev->remote->control = 0; 
    302302 
    303     div = ar7_dsp_freq() / 62500000; 
    304     if(ar7_dsp_freq() / div != 62500000) 
    305     { 
     303        div = ar7_dsp_freq() / 62500000; 
     304        if(ar7_dsp_freq() / div != 62500000) 
     305        { 
    306306                printk(KERN_WARNING 
    307                        "VLYNQ: Adjusted requested frequency %d to %d\n", 
    308                        62500000, ar7_dsp_freq() / div); 
    309     } 
     307                        "VLYNQ: Adjusted requested frequency %d to %d\n", 
     308                        62500000, ar7_dsp_freq() / div); 
     309        } 
    310310     
    311     printk("VLYNQ: Setting clock to %d (clock divider %u)\n", ar7_dsp_freq() / div, div); 
    312         dev->local->control = VLYNQ_CTRL_CLOCK_DIV((div - 1)) | 
     311        printk("VLYNQ: Setting clock to %d (clock divider %u)\n", ar7_dsp_freq() / div, div); 
     312                dev->local->control = VLYNQ_CTRL_CLOCK_DIV((div - 1)) | 
    313313                VLYNQ_CTRL_CLOCK_INT; 
    314  
    315 //      dev->local->control = VLYNQ_CTRL_CLOCK_INT; 
    316  
    317     if (vlynq_linked(dev))  
     314/* 
     315        dev->local->control = VLYNQ_CTRL_CLOCK_INT; 
     316*/ 
     317        if (vlynq_linked(dev))  
    318318                return vlynq_setup_irq(dev); 
    319319 
    320     return -ENODEV; 
     320        return -ENODEV; 
    321321} 
    322322 
Note: See TracChangeset for help on using the changeset viewer.