From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 3/3] driver: drop unused dev_open/close_default stubs
Date: Wed, 26 Mar 2025 18:00:10 +0100 [thread overview]
Message-ID: <20250326170010.670379-3-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20250326170010.670379-1-a.fatoum@pengutronix.de>
These function have been unused since 2009, so drop them already.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
include/driver.h | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/include/driver.h b/include/driver.h
index 59ce1d5cc9b7..76b167166954 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -21,7 +21,6 @@
#include <param.h>
-struct file;
struct bus_type;
struct generic_pm_domain;
@@ -353,16 +352,6 @@ ssize_t mem_copy(struct device *dev, void *dst, const void *src,
int generic_memmap_ro(struct cdev *dev, void **map, int flags);
int generic_memmap_rw(struct cdev *dev, void **map, int flags);
-static inline int dev_open_default(struct device *dev, struct file *f)
-{
- return 0;
-}
-
-static inline int dev_close_default(struct device *dev, struct file *f)
-{
- return 0;
-}
-
struct bus_type {
char *name;
int (*match)(struct device *dev, struct driver *drv);
--
2.39.5
next prev parent reply other threads:[~2025-03-26 17:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-26 17:00 [PATCH 1/3] fs: squashfs: drop unused struct squashfs_dir definition Ahmad Fatoum
2025-03-26 17:00 ` [PATCH 2/3] common: elf: drop unused arch notes stubs Ahmad Fatoum
2025-03-26 17:00 ` Ahmad Fatoum [this message]
2025-03-27 9:17 ` [PATCH 1/3] fs: squashfs: drop unused struct squashfs_dir definition Sascha Hauer
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=20250326170010.670379-3-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@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