powerpc/powernv: Fix endian issues with OPAL async code
[firefly-linux-kernel-4.4.55.git] / arch / powerpc / include / asm / opal.h
index fe2aa0b48d2b00e43e47212ddb55ce6c5142537f..fc73661c20fa384ab2966e824cd9dff81de5be5e 100644 (file)
@@ -422,9 +422,9 @@ enum OpalSysparamPerm {
 };
 
 struct opal_msg {
-       uint32_t msg_type;
-       uint32_t reserved;
-       uint64_t params[8];
+       __be32 msg_type;
+       __be32 reserved;
+       __be64 params[8];
 };
 
 struct opal_machine_check_event {
@@ -892,6 +892,8 @@ extern int early_init_dt_scan_opal(unsigned long node, const char *uname,
                                   int depth, void *data);
 
 extern int opal_notifier_register(struct notifier_block *nb);
+extern int opal_notifier_unregister(struct notifier_block *nb);
+
 extern int opal_message_notifier_register(enum OpalMessageType msg_type,
                                                struct notifier_block *nb);
 extern void opal_notifier_enable(void);