We can't use dev_err() becuase "priv" is NULL. Found by smatch (http://repo.or.cz/w/smatch.git). regards, dan carpenter Signed-off-by: Dan Carpenter <error27@xxxxxxxxx> --- orig/drivers/net/wireless/p54/p54spi.c 2009-07-17 16:04:20.000000000 +0300 +++ new/drivers/net/wireless/p54/p54spi.c 2009-07-17 16:05:28.000000000 +0300 @@ -635,7 +635,7 @@ hw = p54_init_common(sizeof(*priv)); if (!hw) { - dev_err(&priv->spi->dev, "could not alloc ieee80211_hw"); + printk(KERN_ERR "could not alloc ieee80211_hw"); return -ENOMEM; } -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html