Skip to content

Commit

Permalink
Merge tag 'hwlock-v5.11' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/andersson/remoteproc

Pull hwspinlock updates from Bjorn Andersson:
 "This contains a few minor cleanups and build warning fixes for the
  sprd and sirf hwspinlock drivers"

* tag 'hwlock-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/andersson/remoteproc:
  hwspinlock: sirf: Remove the redundant 'of_match_ptr'
  hwspinlock: sprd: fixed warning of unused variable 'sprd_hwspinlock_of_match'
  hwspinlock: sprd: use module_platform_driver() instead postcore initcall
  hwspinlock: sprd: Remove redundant header files
  • Loading branch information
Linus Torvalds committed Dec 16, 2020
2 parents ef9df00 + c3e9b46 commit 0e10f9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion drivers/hwspinlock/sirf_hwspinlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static struct platform_driver sirf_hwspinlock_driver = {
.probe = sirf_hwspinlock_probe,
.driver = {
.name = "atlas7_hwspinlock",
.of_match_table = of_match_ptr(sirf_hwpinlock_ids),
.of_match_table = sirf_hwpinlock_ids,
},
};

Expand Down
17 changes: 2 additions & 15 deletions drivers/hwspinlock/sprd_hwspinlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Copyright (C) 2017 Spreadtrum - http://www.spreadtrum.com
*/

#include <linux/bitops.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/device.h>
Expand All @@ -15,7 +14,6 @@
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/slab.h>

#include "hwspinlock_internal.h"

Expand Down Expand Up @@ -148,21 +146,10 @@ static struct platform_driver sprd_hwspinlock_driver = {
.probe = sprd_hwspinlock_probe,
.driver = {
.name = "sprd_hwspinlock",
.of_match_table = of_match_ptr(sprd_hwspinlock_of_match),
.of_match_table = sprd_hwspinlock_of_match,
},
};

static int __init sprd_hwspinlock_init(void)
{
return platform_driver_register(&sprd_hwspinlock_driver);
}
postcore_initcall(sprd_hwspinlock_init);

static void __exit sprd_hwspinlock_exit(void)
{
platform_driver_unregister(&sprd_hwspinlock_driver);
}
module_exit(sprd_hwspinlock_exit);
module_platform_driver(sprd_hwspinlock_driver);

MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("Hardware spinlock driver for Spreadtrum");
Expand Down

0 comments on commit 0e10f9c

Please sign in to comment.