mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: William Breathitt Gray <vilhelm.gray@gmail.com>
To: linus.walleij@linaro.org, gnurou@gmail.com
Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org,
	William Breathitt Gray <vilhelm.gray@gmail.com>
Subject: [PATCH 1/5] gpio: 104-dio-48e: Remove unnecessary driver_data set
Date: Mon, 30 Jan 2017 09:39:37 -0500	[thread overview]
Message-ID: <6842aabe11583bddfd5f241841ad9776f5dfe07e.1485786703.git.vilhelm.gray@gmail.com> (raw)
In-Reply-To: <cover.1485786703.git.vilhelm.gray@gmail.com>

Setting driver_data was necessary to access private data in the
dio48e_remove function. Now that the dio48e_remove function is gone,
driver_data is no longer used. This patch removes the relevant code.

Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
---
 drivers/gpio/gpio-104-dio-48e.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpio/gpio-104-dio-48e.c b/drivers/gpio/gpio-104-dio-48e.c
index 221243f17d4e..b6b0378166c4 100644
--- a/drivers/gpio/gpio-104-dio-48e.c
+++ b/drivers/gpio/gpio-104-dio-48e.c
@@ -369,8 +369,6 @@ static int dio48e_probe(struct device *dev, unsigned int id)
 
 	spin_lock_init(&dio48egpio->lock);
 
-	dev_set_drvdata(dev, dio48egpio);
-
 	err = devm_gpiochip_add_data(dev, &dio48egpio->chip, dio48egpio);
 	if (err) {
 		dev_err(dev, "GPIO registering failed (%d)\n", err);
-- 
2.11.0

  reply	other threads:[~2017-01-30 14:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-30 14:39 [PATCH 0/5] gpio: Remove unnecessary driver_data set operations William Breathitt Gray
2017-01-30 14:39 ` William Breathitt Gray [this message]
2017-02-01 13:21   ` [PATCH 1/5] gpio: 104-dio-48e: Remove unnecessary driver_data set Linus Walleij
2017-01-30 14:39 ` [PATCH 2/5] gpio: 104-idi-48: " William Breathitt Gray
2017-02-01 13:22   ` Linus Walleij
2017-01-30 14:39 ` [PATCH 3/5] gpio: 104-idio-16: " William Breathitt Gray
2017-02-01 13:23   ` Linus Walleij
2017-01-30 14:40 ` [PATCH 4/5] gpio: gpio-mm: " William Breathitt Gray
2017-02-01 13:44   ` Linus Walleij
2017-01-30 14:40 ` [PATCH 5/5] gpio: ws16c48: " William Breathitt Gray
2017-02-01 13:45   ` 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=6842aabe11583bddfd5f241841ad9776f5dfe07e.1485786703.git.vilhelm.gray@gmail.com \
    --to=vilhelm.gray@gmail.com \
    --cc=gnurou@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®