Re: Kernel Oops on device_create

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

 



Pei Lin wrote:
> struct device *device_create(struct class *class, struct device *parent,
>                        dev_t devt, const char *fmt, ...)
>
> you see the prototype about device_create ,and the fourth parameter
> you give is NULL.
>
> i think that is a problem.
>   
Oh yeah - man, thank you!!!

They changed the call - in 2.6.27 it is:

struct device * device_create(struct class * class, struct device *
parent, dev_t devt, void * drvdata,
                                     const char * fmt, ...);
ok, so I have to find the version where it changes and adjust the code.

Thank you VERY much, I looked over  it again and again and never
regocnized it.

Bye...Frank

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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux