mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 17:25:38 +00:00
parisc: asp: Initialize asp driver via arch_initcall()
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
ac65d9c90e
commit
ff0e833e98
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* (c) Copyright 2000 The Puffin Group Inc.
|
* (c) Copyright 2000 The Puffin Group Inc.
|
||||||
*
|
*
|
||||||
* by Helge Deller <deller@gmx.de>
|
* (c) 2000-2023 by Helge Deller <deller@gmx.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/errno.h>
|
#include <linux/errno.h>
|
||||||
@ -118,9 +118,16 @@ static const struct parisc_device_id asp_tbl[] __initconst = {
|
|||||||
{ HPHW_BA, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00070 },
|
{ HPHW_BA, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00070 },
|
||||||
{ 0, }
|
{ 0, }
|
||||||
};
|
};
|
||||||
|
MODULE_DEVICE_TABLE(parisc, asp_tbl);
|
||||||
|
|
||||||
struct parisc_driver asp_driver __refdata = {
|
static struct parisc_driver asp_driver __refdata = {
|
||||||
.name = "asp",
|
.name = "asp",
|
||||||
.id_table = asp_tbl,
|
.id_table = asp_tbl,
|
||||||
.probe = asp_init_chip,
|
.probe = asp_init_chip,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static int __init asp_init(void)
|
||||||
|
{
|
||||||
|
return register_parisc_driver(&asp_driver);
|
||||||
|
}
|
||||||
|
arch_initcall(asp_init);
|
||||||
|
@ -260,13 +260,11 @@ int gsc_common_setup(struct parisc_device *parent, struct gsc_asic *gsc_asic)
|
|||||||
}
|
}
|
||||||
|
|
||||||
extern struct parisc_driver lasi_driver;
|
extern struct parisc_driver lasi_driver;
|
||||||
extern struct parisc_driver asp_driver;
|
|
||||||
|
|
||||||
static int __init gsc_init(void)
|
static int __init gsc_init(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_GSC_LASI
|
#ifdef CONFIG_GSC_LASI
|
||||||
register_parisc_driver(&lasi_driver);
|
register_parisc_driver(&lasi_driver);
|
||||||
register_parisc_driver(&asp_driver);
|
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user