ata: Convert to static DEFINE_SPINLOCK(lock)
Replace deprecated static spinlock_t instance to static DEFINE_SPINLOCK(lock). Signed-off-by: Pradeep Singh <rautelap@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
23cf296e3b
commit
2da676594a
@ -5403,7 +5403,7 @@ static void ata_host_stop(struct device *gendev, void *res)
|
||||
*/
|
||||
static void ata_finalize_port_ops(struct ata_port_operations *ops)
|
||||
{
|
||||
static spinlock_t lock = SPIN_LOCK_UNLOCKED;
|
||||
static DEFINE_SPINLOCK(lock);
|
||||
const struct ata_port_operations *cur;
|
||||
void **begin = (void **)ops;
|
||||
void **end = (void **)&ops->inherits;
|
||||
|
Loading…
Reference in New Issue
Block a user