From: Geert Uytterhoeven <geert@linux-m68k.org>
To: linux-m68k@lists.linux-m68k.org
Cc: linux-kernel@vger.kernel.org, Geert Uytterhoeven <geert@linux-m68k.org>
Subject: [PATCH 5/5] zorro: Move zorro_bus_type to bus-private header file
Date: Sun, 12 Jan 2020 17:49:49 +0100 [thread overview]
Message-ID: <20200112164949.20196-6-geert@linux-m68k.org> (raw)
In-Reply-To: <20200112164949.20196-1-geert@linux-m68k.org>
zorro_bus_type was never used outside the Zorro bus code. Hence move it
from the public to the bus-private header file.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
drivers/zorro/zorro.h | 7 +++++++
include/linux/zorro.h | 7 -------
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/zorro/zorro.h b/drivers/zorro/zorro.h
index ac0bab3412d90ddb..f84df9fb4c200ec3 100644
--- a/drivers/zorro/zorro.h
+++ b/drivers/zorro/zorro.h
@@ -1,5 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0 */
+ /*
+ * Zorro bus
+ */
+
+extern struct bus_type zorro_bus_type;
+
+
#ifdef CONFIG_ZORRO_NAMES
extern void zorro_name_device(struct zorro_dev *z);
#else
diff --git a/include/linux/zorro.h b/include/linux/zorro.h
index 22f3f80fbcb5afe6..e2e4de188d84a6d9 100644
--- a/include/linux/zorro.h
+++ b/include/linux/zorro.h
@@ -40,13 +40,6 @@ struct zorro_dev {
#define to_zorro_dev(n) container_of(n, struct zorro_dev, dev)
- /*
- * Zorro bus
- */
-
-extern struct bus_type zorro_bus_type;
-
-
/*
* Zorro device drivers
*/
--
2.17.1
next prev parent reply other threads:[~2020-01-12 16:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-12 16:49 [PATCH 0/5] zorro: Miscellaneous cleanups Geert Uytterhoeven
2020-01-12 16:49 ` [PATCH 1/5] zorro: Make zorro_match_device() static Geert Uytterhoeven
2020-01-12 16:49 ` [PATCH 2/5] zorro: Fix zorro_bus_match() kerneldoc Geert Uytterhoeven
2020-01-12 16:49 ` [PATCH 3/5] zorro: Use zorro_match_device() helper in zorro_bus_match() Geert Uytterhoeven
2020-01-12 16:49 ` [PATCH 4/5] zorro: Remove unused zorro_dev_driver() Geert Uytterhoeven
2020-01-12 16:49 ` Geert Uytterhoeven [this message]
2020-02-10 11:16 ` [PATCH 0/5] zorro: Miscellaneous cleanups Geert Uytterhoeven
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=20200112164949.20196-6-geert@linux-m68k.org \
--to=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.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).