On Tue, Sep 22, 2009 at 08:03:32PM +0530, C.A, Subramaniam wrote: > @@ -70,10 +88,9 @@ static inline void mbox_write_reg(u32 val, size_t ofs) > static int omap2_mbox_startup(struct omap_mbox *mbox) > { > unsigned int l; > - > mbox_ick_handle = clk_get(NULL, "mailboxes_ick"); > if (IS_ERR(mbox_ick_handle)) { > - printk("Could not get mailboxes_ick\n"); > + printk(KERN_ERR "Could not get mailboxes_ick\n"); > return -ENODEV; Good idea: Print the error code so people can diagnose why things fail. printk(KERN_ERR "Could not get mailboxes_ick: %d\n", PTR_ERR(mbox_ick_handle)); And wonder why this hasn't been spotted before. Rule: always propagate error codes when you have one to propagate. return PTR_ERR(mbox_ick_handle); BTW, in future, please post patches to my linux@ address, not my rmk@ address. Patches to my rmk@ address tend to be heavily buried. -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html