Skip to content

Commit

Permalink
dax/hmem: Drop unnecessary dax_hmem_remove()
Browse files Browse the repository at this point in the history
Empty driver remove callbacks can just be elided.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Gregory Price <gregory.price@memverge.com>
Tested-by: Fan Ni <fan.ni@samsung.com>
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/167602001664.1924368.9102029637928071240.stgit@dwillia2-xfh.jf.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
  • Loading branch information
Dan Williams committed Feb 11, 2023
1 parent df2798b commit 84fe17f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/dax/hmem/hmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down

0 comments on commit 84fe17f

Please sign in to comment.