mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:38:03 +00:00
parisc: wax: Initialize wax driver via arch_initcall()
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
9c2ca106c9
commit
ac65d9c90e
@ -261,16 +261,12 @@ 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;
|
extern struct parisc_driver asp_driver;
|
||||||
extern struct parisc_driver wax_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);
|
register_parisc_driver(&asp_driver);
|
||||||
#endif
|
|
||||||
#ifdef CONFIG_GSC_WAX
|
|
||||||
register_parisc_driver(&wax_driver);
|
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
@ -121,14 +121,20 @@ static int __init wax_init_chip(struct parisc_device *dev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const struct parisc_device_id wax_tbl[] __initconst = {
|
static const struct parisc_device_id wax_tbl[] __initconst = {
|
||||||
{ HPHW_BA, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0008e },
|
{ HPHW_BA, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0008e },
|
||||||
{ 0, }
|
{ 0, }
|
||||||
};
|
};
|
||||||
|
|
||||||
MODULE_DEVICE_TABLE(parisc, wax_tbl);
|
MODULE_DEVICE_TABLE(parisc, wax_tbl);
|
||||||
|
|
||||||
struct parisc_driver wax_driver __refdata = {
|
static struct parisc_driver wax_driver __refdata = {
|
||||||
.name = "wax",
|
.name = "wax",
|
||||||
.id_table = wax_tbl,
|
.id_table = wax_tbl,
|
||||||
.probe = wax_init_chip,
|
.probe = wax_init_chip,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static int __init wax_init(void)
|
||||||
|
{
|
||||||
|
return register_parisc_driver(&wax_driver);
|
||||||
|
}
|
||||||
|
arch_initcall(wax_init);
|
||||||
|
Loading…
Reference in New Issue
Block a user