Re: if cdev_add() fails, do you need to put the cdev's kobject?

2011-05-03 Thread Greg KH
On Tue, May 03, 2011 at 05:46:05PM -0400, Robert P. J. Day wrote: still perusing various drivers to use as examples in class, and i ran across this snippet in the load routine of drivers/char/raw.c: = start excerpt = cdev_init(raw_cdev, raw_fops); ret =

Re: if cdev_add() fails, do you need to put the cdev's kobject?

2011-05-03 Thread Robert P. J. Day
On Tue, 3 May 2011, Greg KH wrote: On Tue, May 03, 2011 at 05:46:05PM -0400, Robert P. J. Day wrote: still perusing various drivers to use as examples in class, and i ran across this snippet in the load routine of drivers/char/raw.c: = start excerpt =