Messages in this thread | | | Date | Wed, 5 Sep 2012 12:03:19 +0800 | From | Shawn Guo <> | Subject | Re: [PATCH v3 2/4] misc: Generic on-chip SRAM allocation driver |
| |
On Mon, Sep 03, 2012 at 06:02:06PM +0200, Philipp Zabel wrote: > +static struct platform_driver sram_driver = { > + .driver = { > + .name = "sram", > + .of_match_table = of_match_ptr(sram_dt_ids), > + }, > + .probe = sram_probe, > + .remove = __devexit_p(sram_remove), > +}; > + > +module_platform_driver(sram_driver);
I think we'd better make it a postcore_initcall time driver, so that it can be ensured that when the client drivers call gen_pool_* API the pool has been created by sram_driver.
-- Regards, Shawn
| |