linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: rabin.vincent@stericsson.com (Rabin Vincent)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/9] nomadik-gpio: use dev name if no name is specified
Date: Wed, 8 Dec 2010 11:07:54 +0530	[thread overview]
Message-ID: <1291786681-8664-2-git-send-email-rabin.vincent@stericsson.com> (raw)
In-Reply-To: <1291786681-8664-1-git-send-email-rabin.vincent@stericsson.com>

Platforms may choose not to provide an additional name for the GPIO
block.

Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
---
 arch/arm/plat-nomadik/gpio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/plat-nomadik/gpio.c b/arch/arm/plat-nomadik/gpio.c
index 5fc8e4d..eda4e3a 100644
--- a/arch/arm/plat-nomadik/gpio.c
+++ b/arch/arm/plat-nomadik/gpio.c
@@ -672,7 +672,7 @@ static int __devinit nmk_gpio_probe(struct platform_device *dev)
 
 	chip = &nmk_chip->chip;
 	chip->base = pdata->first_gpio;
-	chip->label = pdata->name;
+	chip->label = pdata->name ?: dev_name(&dev->dev);
 	chip->dev = &dev->dev;
 	chip->owner = THIS_MODULE;
 
-- 
1.7.2.dirty

  reply	other threads:[~2010-12-08  5:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-08  5:37 [PATCH 1/9] ux500: fix uncompressor UART address for U5500 Rabin Vincent
2010-12-08  5:37 ` Rabin Vincent [this message]
2010-12-08  5:37 ` [PATCH 3/9] ux500: rework gpio registration Rabin Vincent
2010-12-08  5:37 ` [PATCH 4/9] ux500: remove ambiguous irq macros Rabin Vincent
2010-12-08  5:37 ` [PATCH 5/9] ux500: remove build-time changing macros Rabin Vincent
2010-12-19 22:38   ` Linus Walleij
2010-12-08  5:37 ` [PATCH 6/9] ux500: rename MOP board Kconfig Rabin Vincent
2010-12-08  5:37 ` [PATCH 7/9] ux500: dynamic SOC detection Rabin Vincent
2010-12-08  5:38 ` [PATCH 8/9] ux500: modem_irq is only for 5500 Rabin Vincent
2010-12-08  5:38 ` [PATCH 9/9] ux500: allow 5500 and 8500 to be built together Rabin Vincent
2010-12-09  9:08 ` [PATCH 1/9] ux500: fix uncompressor UART address for U5500 Linus Walleij

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1291786681-8664-2-git-send-email-rabin.vincent@stericsson.com \
    --to=rabin.vincent@stericsson.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).