<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>[PATCH] pinctrl/pinctrl-u300: remove devm_kfree at driver unload</title>
        <description> the memory allocated by devm_kzalloc is automatically
freed at the driver detach side, so no neeed of calling
devm_kfree

Signed-off-by: Devendra Naga &amp;lt;devendra.aaru@gmail.com&amp;gt;
---
 drivers/pinctrl/pinctrl-u300.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pinctrl/pinctrl-u300.c b/drivers/pinctrl/pinctrl-u300.c
index 05d0299..13e7a3e 100644
--- a/drivers/pinctrl/pinctrl-u300.c
+++ b/drivers/pinctrl/pinctrl-u300.c
@@ -1183,7 +1183,6 @@ static int __devexit u300_pmx_remove(struct platform_device *pdev)
 	iounmap(upmx-&amp;gt;virtbase);
 	release_mem_region(upmx-&amp;gt;phybase, upmx-&amp;gt;physize);
 	platform_set_drvdata(pdev, NULL);
-	devm_kfree(&amp;amp;pdev-&amp;gt;dev, upmx);
 
 	return 0;
 }
-- 
1.7.9.5

--
To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-kernel&amp;quot; in
the body of a message to &amp;#109;&amp;#97;&amp;#106;&amp;#111;&amp;#114;&amp;#100;&amp;#111;&amp;#109;&amp;#111;&amp;#64;&amp;#118;&amp;#103;&amp;#101;&amp;#114;&amp;#46;&amp;#107;&amp;#101;&amp;#114;&amp;#110;&amp;#101;&amp;#108;&amp;#46;&amp;#111;&amp;#114;&amp;#103;
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/</description>
        <link>http://www.serverphorums.com/read.php?12,514598,514598#msg-514598</link>
        <lastBuildDate>Sat, 25 May 2013 02:49:26 +0200</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://www.serverphorums.com/read.php?12,514598,515005#msg-515005</guid>
            <title>Re: [PATCH] pinctrl/pinctrl-u300: remove devm_kfree at driver unload</title>
            <link>http://www.serverphorums.com/read.php?12,514598,515005#msg-515005</link>
            <description><![CDATA[ On Sat, Jun 16, 2012 at 7:45 PM, Devendra Naga &lt;devendra.aaru@gmail.com&gt; wrote:<br />
<br />
&gt; the memory allocated by devm_kzalloc is automatically<br />
&gt; freed at the driver detach side, so no neeed of calling<br />
&gt; devm_kfree<br />
&gt;<br />
&gt; Signed-off-by: Devendra Naga &lt;devendra.aaru@gmail.com&gt;<br />
<br />
Applied, thanks!<br />
Linus Walleij<br />
--<br />
To unsubscribe from this list: send the line &quot;unsubscribe linux-kernel&quot; in<br />
the body of a message to <a href="mailto:&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;">&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;</a><br />
More majordomo info at  <a href="http://vger.kernel.org/majordomo-info.html" target="_blank"  rel="nofollow">http://vger.kernel.org/majordomo-info.html</a><br />
Please read the FAQ at  <a href="http://www.tux.org/lkml/" target="_blank"  rel="nofollow">http://www.tux.org/lkml/</a>]]></description>
            <dc:creator>Linus Walleij</dc:creator>
            <category>Linux Kernel</category>
            <pubDate>Mon, 18 Jun 2012 08:10:02 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?12,514598,514598#msg-514598</guid>
            <title>[PATCH] pinctrl/pinctrl-u300: remove devm_kfree at driver unload</title>
            <link>http://www.serverphorums.com/read.php?12,514598,514598#msg-514598</link>
            <description><![CDATA[ the memory allocated by devm_kzalloc is automatically<br />
freed at the driver detach side, so no neeed of calling<br />
devm_kfree<br />
<br />
Signed-off-by: Devendra Naga &lt;devendra.aaru@gmail.com&gt;<br />
---<br />
 drivers/pinctrl/pinctrl-u300.c |    1 -<br />
 1 file changed, 1 deletion(-)<br />
<br />
diff --git a/drivers/pinctrl/pinctrl-u300.c b/drivers/pinctrl/pinctrl-u300.c<br />
index 05d0299..13e7a3e 100644<br />
--- a/drivers/pinctrl/pinctrl-u300.c<br />
+++ b/drivers/pinctrl/pinctrl-u300.c<br />
@@ -1183,7 +1183,6 @@ static int __devexit u300_pmx_remove(struct platform_device *pdev)<br />
 	iounmap(upmx-&gt;virtbase);<br />
 	release_mem_region(upmx-&gt;phybase, upmx-&gt;physize);<br />
 	platform_set_drvdata(pdev, NULL);<br />
-	devm_kfree(&amp;pdev-&gt;dev, upmx);<br />
 <br />
 	return 0;<br />
 }<br />
-- <br />
1.7.9.5<br />
<br />
--<br />
To unsubscribe from this list: send the line &quot;unsubscribe linux-kernel&quot; in<br />
the body of a message to <a href="mailto:&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;">&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;</a><br />
More majordomo info at  <a href="http://vger.kernel.org/majordomo-info.html" target="_blank"  rel="nofollow">http://vger.kernel.org/majordomo-info.html</a><br />
Please read the FAQ at  <a href="http://www.tux.org/lkml/" target="_blank"  rel="nofollow">http://www.tux.org/lkml/</a>]]></description>
            <dc:creator>Devendra Naga</dc:creator>
            <category>Linux Kernel</category>
            <pubDate>Sat, 16 Jun 2012 19:50:02 +0200</pubDate>
        </item>
    </channel>
</rss>
