Linux ATA/IDE development
 help / color / mirror / Atom feed
* [PATCH v2.6.26-rc4] ata: Convert deprecated static spinlock_t lock instance to static DEFINE_SPINLOCK(lock)
@ 2008-05-29 17:58 Pradeep Singh Rautela
  2008-05-30 22:11 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Pradeep Singh Rautela @ 2008-05-29 17:58 UTC (permalink / raw)
  To: linux-ide; +Cc: kernel-janitors, jgarzik

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

Signed-off-by: Pradeep Singh <rautelap@gmail.com>
---
 drivers/ata/libata-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 3c89f20..cc816ca 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -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;
-- 
1.5.5.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2.6.26-rc4] ata: Convert deprecated static spinlock_t lock instance to static DEFINE_SPINLOCK(lock)
  2008-05-29 17:58 [PATCH v2.6.26-rc4] ata: Convert deprecated static spinlock_t lock instance to static DEFINE_SPINLOCK(lock) Pradeep Singh Rautela
@ 2008-05-30 22:11 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2008-05-30 22:11 UTC (permalink / raw)
  To: Pradeep Singh Rautela; +Cc: linux-ide, kernel-janitors

Pradeep Singh Rautela wrote:
> Replace deprecated static spinlock_t instance to static DEFINE_SPINLOCK(lock).
> 
> Signed-off-by: Pradeep Singh <rautelap@gmail.com>
> ---
>  drivers/ata/libata-core.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
> index 3c89f20..cc816ca 100644
> --- a/drivers/ata/libata-core.c
> +++ b/drivers/ata/libata-core.c
> @@ -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;

applied



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-30 22:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-29 17:58 [PATCH v2.6.26-rc4] ata: Convert deprecated static spinlock_t lock instance to static DEFINE_SPINLOCK(lock) Pradeep Singh Rautela
2008-05-30 22:11 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox