0
votes

I'm having some issues with a linux device driver.

When I try to register it using

extern int platform_driver_probe(struct platform_driver *driver, int (*probe)(struct platform_device *));

it returns an error. I'm currently using Linux kernel 3.10 and I this driver was working fine in 3.2. I'm cross-compiling this kernel for an embedded system.

This might seem rather vague but I really don't have any other information that I think is useful.

Does anyone has any idea to help me debug or solve this error?

EDIT: The error code is -19.

1
So you don't know what the error is?CL.
What error? Anything useful in dmesg?Peter
The error code is -19, and no, unfortunately there isn't anything useful in dmesg.Jamiro14
error -19 is ENODEV : #define ENODEV 19 /* No such device */Mali

1 Answers

1
votes

As 19 is ENODEV error code, i suppose this is where it failed in platform_driver_probe() :

if (code == 0 && list_empty(&drv->driver.p->klist_devices.k_list))
        retval = -ENODEV;

Hope this helps,