diff --git a/drivers/ide/legacy/hd.c b/drivers/ide/legacy/hd.c
index c4090550ec130da0d93ff7e5b6b37ae2fcbdb5aa..e884cd4b22fdeaccab4310a801d1296ee3b73ff3 100644
--- a/drivers/ide/legacy/hd.c
+++ b/drivers/ide/legacy/hd.c
@@ -851,7 +851,7 @@ static int __init hd_init(void)
 	goto out;
 }
 
-static int parse_hd_setup (char *line) {
+static int __init parse_hd_setup (char *line) {
 	int ints[6];
 
 	(void) get_options(line, ARRAY_SIZE(ints), ints);