diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2023-03-01 14:13:48 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-03-07 10:39:30 +0100 |
commit | 4e8f4c9b27cd5282e412bdd0facf5cbe3ec6a1ab (patch) | |
tree | 2bb89b59de51ce38d88b905fab84aab007e11e43 /fs | |
parent | c041311a5f64ac5222066cf6615cead91695c91c (diff) | |
download | barebox-4e8f4c9b27cd5282e412bdd0facf5cbe3ec6a1ab.tar.gz |
ARM: omap: usbboot: Enable USB communication when needed
Instead of activating USB communication unconditionally in an initcall,
let the users activate it once they need it. This gets us rid of an
initcall that is not protected against running on foreign SoCs.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/omap4_usbbootfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/omap4_usbbootfs.c b/fs/omap4_usbbootfs.c index 9b0755d539..30392d1192 100644 --- a/fs/omap4_usbbootfs.c +++ b/fs/omap4_usbbootfs.c @@ -143,8 +143,9 @@ static int omap4_usbbootfs_stat(struct device *dev, const char *filename, static int omap4_usbbootfs_probe(struct device *dev) { - return 0; + return omap4_usbboot_open(); } + static void omap4_usbbootfs_remove(struct device *dev) { } |