platform.c (cf9ce948f47640797bd19980e1d99c6d17d0bdc3) platform.c (8c6ffba0eddc8c110dbf444f51354ce42069abfc)
1/*
2 * Copyright (C) 2007-2009 Geert Uytterhoeven
3 *
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file COPYING in the main directory of this archive
6 * for more details.
7 */
8

--- 42 unchanged lines hidden (view full) ---

51 unsigned int n;
52
53 if (!MACH_IS_AMIGA || !AMIGAHW_PRESENT(ZORRO))
54 return -ENODEV;
55
56 n = AMIGAHW_PRESENT(ZORRO3) ? 4 : 2;
57 pdev = platform_device_register_simple("amiga-zorro", -1,
58 zorro_resources, n);
1/*
2 * Copyright (C) 2007-2009 Geert Uytterhoeven
3 *
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file COPYING in the main directory of this archive
6 * for more details.
7 */
8

--- 42 unchanged lines hidden (view full) ---

51 unsigned int n;
52
53 if (!MACH_IS_AMIGA || !AMIGAHW_PRESENT(ZORRO))
54 return -ENODEV;
55
56 n = AMIGAHW_PRESENT(ZORRO3) ? 4 : 2;
57 pdev = platform_device_register_simple("amiga-zorro", -1,
58 zorro_resources, n);
59 return PTR_RET(pdev);
59 return PTR_ERR_OR_ZERO(pdev);
60}
61
62subsys_initcall(amiga_init_bus);
63
64
65static int __init z_dev_present(zorro_id id)
66{
67 unsigned int i;

--- 185 unchanged lines hidden ---
60}
61
62subsys_initcall(amiga_init_bus);
63
64
65static int __init z_dev_present(zorro_id id)
66{
67 unsigned int i;

--- 185 unchanged lines hidden ---