[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linking/comping with clock.c



I now have this peice of code that uses the clock. However, the 'struct clk' is
defined in clock.c, so not suprisingly it refuses to compile. I have no idea how
other manage to make their code compile when they use the 'struct clk'. If somebody
could explain this, then please do so :-)


        clk = clk_get(NULL, "psi_clk");
        if( !clk ) {
                printk("no clk found\n");
        }
        else {
                 printk("clk name: %s\n", clk->name);
                 printk("clk rate: %u\n", clk->rate);
        }


/peter


--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?




-- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ