On Thu, Apr 14, 2011 at 01:49:27PM -0600, Grant Likely wrote:
> > +static struct class pwm_class = {
> > +       .name           = "pwm",
> > +       .owner          = THIS_MODULE,
> > +       .dev_attrs      = pwm_dev_attrs,
> > +};
> 
> >From my understanding, class is deprecated.  I believe you should be
> using bus_type directly now.  Check with Greg and Kay.

Yes, that is correct, please don't create new classes if at all
possible.  And this code looks like it is fine to use a bus_type.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-embedded" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to