Message ID | 167564542679.847146.17174404738816053065.stgit@dwillia2-xfh.jf.intel.com |
---|---|
State | Accepted |
Commit | 84fe17f8e9c68a4389c6e89b7ce3b4651b359989 |
Headers | show |
Series | CXL RAM and the 'Soft Reserved' => 'System RAM' default | expand |
On Sun, Feb 05, 2023 at 05:03:46PM -0800, Dan Williams wrote: > Empty driver remove callbacks can just be elided. > > Signed-off-by: Dan Williams <dan.j.williams@intel.com> > --- > drivers/dax/hmem/hmem.c | 7 ------- > 1 file changed, 7 deletions(-) > Reviewed-by: Gregory Price <gregory.price@memverge.com>
On Sun, 05 Feb 2023 17:03:46 -0800 Dan Williams <dan.j.williams@intel.com> wrote: > Empty driver remove callbacks can just be elided. > > Signed-off-by: Dan Williams <dan.j.williams@intel.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> > --- > drivers/dax/hmem/hmem.c | 7 ------- > 1 file changed, 7 deletions(-) > > diff --git a/drivers/dax/hmem/hmem.c b/drivers/dax/hmem/hmem.c > index 1bf040dbc834..c7351e0dc8ff 100644 > --- a/drivers/dax/hmem/hmem.c > +++ b/drivers/dax/hmem/hmem.c > @@ -44,15 +44,8 @@ static int dax_hmem_probe(struct platform_device *pdev) > return 0; > } > > -static int dax_hmem_remove(struct platform_device *pdev) > -{ > - /* devm handles teardown */ > - return 0; > -} > - > static struct platform_driver dax_hmem_driver = { > .probe = dax_hmem_probe, > - .remove = dax_hmem_remove, > .driver = { > .name = "hmem", > }, >
diff --git a/drivers/dax/hmem/hmem.c b/drivers/dax/hmem/hmem.c index 1bf040dbc834..c7351e0dc8ff 100644 --- a/drivers/dax/hmem/hmem.c +++ b/drivers/dax/hmem/hmem.c @@ -44,15 +44,8 @@ static int dax_hmem_probe(struct platform_device *pdev) return 0; } -static int dax_hmem_remove(struct platform_device *pdev) -{ - /* devm handles teardown */ - return 0; -} - static struct platform_driver dax_hmem_driver = { .probe = dax_hmem_probe, - .remove = dax_hmem_remove, .driver = { .name = "hmem", },
Empty driver remove callbacks can just be elided. Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- drivers/dax/hmem/hmem.c | 7 ------- 1 file changed, 7 deletions(-)