Merge tag 'dt-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-2.6-microblaze.git] / drivers / dio / dio.c
index 193b40e..4c06c93 100644 (file)
@@ -219,7 +219,7 @@ static int __init dio_init(void)
                 /* Found a board, allocate it an entry in the list */
                dev = kzalloc(sizeof(struct dio_dev), GFP_KERNEL);
                if (!dev)
-                       return 0;
+                       return -ENOMEM;
 
                dev->bus = &dio_bus;
                dev->dev.parent = &dio_bus.dev;