Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2da67659 authored by Pradeep Singh Rautela's avatar Pradeep Singh Rautela Committed by Jeff Garzik
Browse files

ata: Convert to static DEFINE_SPINLOCK(lock)



Replace deprecated static spinlock_t instance to static DEFINE_SPINLOCK(lock).

Signed-off-by: default avatarPradeep Singh <rautelap@gmail.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 23cf296e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;