hwspinlock updates for v5.11

This contains a few minor cleanups and build warning fixes for the sprd
 and sirf hwspinlock drivers.
 -----BEGIN PGP SIGNATURE-----
 
 iQJPBAABCAA5FiEEBd4DzF816k8JZtUlCx85Pw2ZrcUFAl/Y9VQbHGJqb3JuLmFu
 ZGVyc3NvbkBsaW5hcm8ub3JnAAoJEAsfOT8Nma3FPhsQAIQ5BzSXU7Ea58OhgXmy
 6SZM8wO0kxebnzIc8K/XdPlvoxZDqnjCT68n6z7u2v97PSF6sOUlRBI7yAyAxsJF
 IZA5zNeTK8YWf/i5SIEqz2FrOadihnNqHN6d5yxH+bSJ86twlxhlEY/vAhj6X4Py
 jUP4s85CrtNq9fl2zCW9zmknpJWtgeRrgBceIWAEIW0rUswQWsX16RwnFcHLiz9t
 /GYxrPV5dHGlzwi9ytWqPb4oyhGZjXtCZGnIR2gwv0nb04oT+UK19JxX+usujnoI
 CuZfRrsVBa/BzbDbH8GCNevdcszQq2TDhtPy52xvV10t4Z9pcXbP+aPUp10ydL04
 Us27ec1fQfgdv7SCjR12k1z8wEI9Bg/2ChG+67vcQEBUal3k3w99bQf+de7OMood
 GXW7/qxO99Xqxq0nFP/noR56DQBOOoKee4fI9RVu8pgz3Wk4MpQ/GPcEH6wwZ+IA
 f0iQX6sgu9rOG9rvLucbzk0gMZMbHRcDFtqGJk97w7mNCRZ5QB2Z7WUEFQGs4WyJ
 AH3dksvhc1Sl30ZR9sZ2ZNLsYQgx2yzQs1D86JtUvUGUgYBjWNQF65qAWDXsRzXx
 6yBMKxLvd7nbvJZQB9ATV1MZ5gdzS/AKUbrptq29pr5tKd3xlBurhnBgskuuSP23
 4JzC2b7gGYp5SWt9QHIPoI4x
 =q7x5
 -----END PGP SIGNATURE-----

Merge tag 'hwlock-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/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
This commit is contained in:
Linus Torvalds 2020-12-15 17:39:38 -08:00
commit 0e10f9c893
2 changed files with 3 additions and 16 deletions

View File

@ -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,
},
};

View File

@ -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>
@ -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"
@ -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");