On Tue, May 24, 2016 at 11:10:56PM +0300, Andy Shevchenko wrote: > On Tue, May 24, 2016 at 10:38 PM, Darren Hart <dvhart@xxxxxxxxxxxxx> wrote: > > On Tue, May 24, 2016 at 09:54:36PM +0300, Andy Shevchenko wrote: ... > >> > +static void intel_pmc_core_remove(struct pci_dev *pdev) > >> > +{ > >> > + pmc_core_dbgfs_unregister(&pmc); > >> > +} > >> > + > >> > +static struct pci_driver intel_pmc_core_driver = { > >> > + .name = "intel_pmc_core", > >> > + .id_table = pmc_pci_ids, > >> > + .probe = pmc_core_probe, > >> > + .remove = intel_pmc_core_remove, > >> > +}; > >> > +module_pci_driver(intel_pmc_core_driver); > >> > + > >> > +MODULE_AUTHOR("Rajneesh Bhardwaj <rajneesh.bhardwaj@xxxxxxxxx>"); > >> > +MODULE_AUTHOR("Vishwanath Somayaji <vishwanath.somayaji@xxxxxxxxx>"); > >> > +MODULE_DESCRIPTION("Intel CORE SoC Power Management Controller Interface"); > >> > +MODULE_LICENSE("GPL v2"); > >> > >> So, since you have symbol defined as boolean, most of the above lines > >> are redundant including ->remove() and module.h inclusion. > >> > >> Do we need it as a module? In that case you have to set to false > >> pmcdev->initialized variable. > > > > It was determined best not to build as a module given the it's primary consumer > > was a built-in. Some of that is still being built, so we'll leave it as built-in > > until it's in, and we can re-evaluate as needed. > > Yeah, I saw several patches floating around that removes module > support for boolean symbols. Thus my question is how we suppose to > proceed. In case we might have module support I would rather remove > extra stuff and apply it later when it would be needed. What do you > think? Agreed, if it is to be boolean, then the modular-specific code should be removed. -- Darren Hart Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html