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 5/5] gpio: ws16c48: Remove unnecessary driver_data set
Date: Mon, 30 Jan 2017 09:40:26 -0500 [thread overview]
Message-ID: <f1e2648b075174cd37d9f2c85cda878bc3b23cf2.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
ws16c48_remove function. Now that the ws16c48_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-ws16c48.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpio/gpio-ws16c48.c b/drivers/gpio/gpio-ws16c48.c
index 65de20dfbe7a..48b35589b7d6 100644
--- a/drivers/gpio/gpio-ws16c48.c
+++ b/drivers/gpio/gpio-ws16c48.c
@@ -372,8 +372,6 @@ static int ws16c48_probe(struct device *dev, unsigned int id)
spin_lock_init(&ws16c48gpio->lock);
- dev_set_drvdata(dev, ws16c48gpio);
-
err = devm_gpiochip_add_data(dev, &ws16c48gpio->chip, ws16c48gpio);
if (err) {
dev_err(dev, "GPIO registering failed (%d)\n", err);
--
2.11.0
next prev parent reply other threads:[~2017-01-30 14:48 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 ` [PATCH 1/5] gpio: 104-dio-48e: Remove unnecessary driver_data set William Breathitt Gray
2017-02-01 13:21 ` 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 ` William Breathitt Gray [this message]
2017-02-01 13:45 ` [PATCH 5/5] gpio: ws16c48: " 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=f1e2648b075174cd37d9f2c85cda878bc3b23cf2.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.