|
@@ -671,6 +671,19 @@ unsigned int qe_get_num_of_snums(void)
|
|
|
}
|
|
|
EXPORT_SYMBOL(qe_get_num_of_snums);
|
|
|
|
|
|
+static int __init qe_init(void)
|
|
|
+{
|
|
|
+ struct device_node *np;
|
|
|
+
|
|
|
+ np = of_find_compatible_node(NULL, NULL, "fsl,qe");
|
|
|
+ if (!np)
|
|
|
+ return -ENODEV;
|
|
|
+ qe_reset();
|
|
|
+ of_node_put(np);
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+subsys_initcall(qe_init);
|
|
|
+
|
|
|
#if defined(CONFIG_SUSPEND) && defined(CONFIG_PPC_85xx)
|
|
|
static int qe_resume(struct platform_device *ofdev)
|
|
|
{
|