perhaps confused about operation of alloc_chrdev_region()

2011-04-21 Thread Robert P. J. Day
i'm in the midst of updating some basic kernel documentation and i just ran across something that makes me question my understanding of the alloc_chrdev_region() kernel routine. as i've understood it all this time, that routine is the preferred routine if you want to allocate some character

Re: perhaps confused about operation of alloc_chrdev_region()

2011-04-21 Thread Daniel Baluta
Hi Robert, static int __init bsr_init(void) {        struct device_node *np;        dev_t bsr_dev = MKDEV(bsr_major, 0);   --- You are right, this seems to be completely useless. Go on make a patch, compile and send it. thanks, Daniel.

Re: perhaps confused about operation of alloc_chrdev_region()

2011-04-21 Thread Robert P. J. Day
On Thu, 21 Apr 2011, Daniel Baluta wrote: Hi Robert, static int __init bsr_init(void) {        struct device_node *np;        dev_t bsr_dev = MKDEV(bsr_major, 0);   --- You are right, this seems to be completely useless. Go on make a patch, compile and send it. well, i