summaryrefslogtreecommitdiff
path: root/include/linux/zorro.h
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-07-30 21:10:35 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-08-05 14:37:04 +0200
commitfac58b4a5287c9d37c39d09d9bdc80846b744649 (patch)
tree45c5fb9b0d4871b10d2f70d529ea703a37541c56 /include/linux/zorro.h
parent18d214cc1d83af5dadf12c383686715497f20571 (diff)
zorro: Drop useless (and hardly used) .driver member in struct zorro_dev
The only actual use is to check in zorro_device_probe() that the device isn't already bound. The driver core already ensures this however so the check can go away which allows to drop the then assigned-only member from struct zorro_dev. If the value was indeed needed somewhere it can always be calculated by to_zorro_driver(z->dev.driver) . Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20210730191035.1455248-5-u.kleine-koenig@pengutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/zorro.h')
-rw-r--r--include/linux/zorro.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/zorro.h b/include/linux/zorro.h
index e2e4de188d84..db7416ed6057 100644
--- a/include/linux/zorro.h
+++ b/include/linux/zorro.h
@@ -29,7 +29,6 @@
struct zorro_dev {
struct ExpansionRom rom;
zorro_id id;
- struct zorro_driver *driver; /* which driver has allocated this device */
struct device dev; /* Generic device interface */
u16 slotaddr;
u16 slotsize;