> > On Thu, Sep 17, 2015 at 06:18:15PM +0200, Michal Schmidt wrote: > > On 09/16/2015 11:41 PM, ira.we...@intel.com wrote: > > > @@ -125,7 +151,20 @@ int __init dev_init(void) > > > ret = PTR_ERR(class); > > > pr_err("Could not create device class (err %d)\n", -ret); > > > unregister_chrdev_region(hfi1_dev, HFI1_NMINORS); > > > + goto done; > > > } > > > + class->devnode = hfi1_devnode; > > > + > > > + user_class = class_create(THIS_MODULE, class_name_user()); > > > + if (IS_ERR(user_class)) { > > > + ret = PTR_ERR(user_class); > > > + pr_err("Could not create device class for user accisble files > > > +(err %d)\n", > > > > ^^^^^^^^ Typo in error message. > > And what is the deal with all these pr_err's? This is a driver, it needs to > use > dev_err and related always. Does thatneed to go in the todo list? > > I'm also skeptical we need a print on every error case :| >
This is very early in the driver code and we don't have a struct device at this point. The bulk of the driver uses macros which use dev_*. So no I don't think we need to add anything to the todo list. Ira -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html