<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: char driver problem&#8230;</title>
	<atom:link href="https://www.emblogic.com/blog/10/char-driver-problem/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog/10/char-driver-problem/</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Mon, 07 Oct 2013 04:00:03 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>By: kamran</title>
		<link>https://www.emblogic.com/blog/10/char-driver-problem/#comment-320</link>
		<dc:creator><![CDATA[kamran]]></dc:creator>
		<pubDate>Fri, 07 Oct 2011 19:07:50 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=884#comment-320</guid>
		<description><![CDATA[//this part of the code is creating the trouble
cdev_del(&amp;scull_dev_ptr[loopv].cdev_var);
kfree(scull_dev_ptr);
unregister_chrdev_region(dev,NO_OF_DEVICES);

The second argument is NO_OF_DEVICE, since 
NO_OF_DEVICE is set to some value say 3.
You are doing that loopv times.

Which will give you error.
use unregister_chrdev_region without the for loop.]]></description>
		<content:encoded><![CDATA[<p>//this part of the code is creating the trouble<br />
cdev_del(&amp;scull_dev_ptr[loopv].cdev_var);<br />
kfree(scull_dev_ptr);<br />
unregister_chrdev_region(dev,NO_OF_DEVICES);</p>
<p>The second argument is NO_OF_DEVICE, since<br />
NO_OF_DEVICE is set to some value say 3.<br />
You are doing that loopv times.</p>
<p>Which will give you error.<br />
use unregister_chrdev_region without the for loop.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
