Thread (33 messages) flat view 33 messages, 7 authors, 2013-08-26
STALE4730d

Revision v4 of 8 in this series.

Revisions (8)
  1. v1 [diff vs current]
  2. v2 [diff vs current]
  3. v3 [diff vs current]
  4. v4 [diff vs current]
  5. v4 [diff vs current]
  6. v4 current
  7. v5 [diff vs current]
  8. v6 [diff vs current]

[PATCH v4 1/5] net: ethernet: cpsw: switch to devres allocations

From: zonque@gmail.com (Daniel Mack)
Date: 2013-08-23 18:34:17
Also in: linux-omap, netdev

On 23.08.2013 20:10, Sergei Shtylyov wrote:
On 08/23/2013 06:16 PM, Daniel Mack wrote:
quoted
  	priv->coal_intvl = 0;
  	priv->bus_freq_mhz = clk_get_rate(priv->clk) / 1000000;

-	priv->cpsw_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	if (!priv->cpsw_res) {
+	ss_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
+	if (!ss_res) {
    You don't need to check the result of platform_get_resource() if you call
devm_ioremap_resource() right afterwards -- it will check resource ptr for 
NULL the first thing. :-)
Thanks! Will address that in v5.


Daniel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help