author | Florian Pose <fp@igh-essen.com> |
Mon, 06 Apr 2009 09:48:01 +0000 | |
changeset 1378 | 1853f6c0b9b2 |
parent 1377 | 79a28afc2bfa |
child 1379 | cbceb0e2f2a0 |
--- a/examples/mini/mini.c Mon Apr 06 09:46:25 2009 +0000 +++ b/examples/mini/mini.c Mon Apr 06 09:48:01 2009 +0000 @@ -376,8 +376,8 @@ printk(KERN_INFO PFX "Starting...\n"); master = ecrt_request_master(0); - if (IS_ERR(master)) { - ret = PTR_ERR(master); + if (!master) { + ret = -EBUSY; printk(KERN_ERR PFX "Requesting master 0 failed.\n"); goto out_return; }