--- zzzz-none-000/linux-2.6.19.2/drivers/char/tlclk.c 2007-01-10 19:10:37.000000000 +0000 +++ davinci-8020-5504/linux-2.6.19.2/drivers/char/tlclk.c 2007-01-11 07:38:19.000000000 +0000 @@ -792,14 +792,15 @@ ret = misc_register(&tlclk_miscdev); if (ret < 0) { printk(KERN_ERR "tlclk: misc_register returns %d.\n", ret); + ret = -EBUSY; goto out3; } tlclk_device = platform_device_register_simple("telco_clock", -1, NULL, 0); - if (IS_ERR(tlclk_device)) { + if (!tlclk_device) { printk(KERN_ERR "tlclk: platform_device_register failed.\n"); - ret = PTR_ERR(tlclk_device); + ret = -EBUSY; goto out4; }