fanghuilin / rpms / kernel

Forked from rpms/kernel 3 years ago
Clone
e293be
diff -up ./drivers/mailbox/pcc.c.pcc ./drivers/mailbox/pcc.c
e293be
--- ./drivers/mailbox/pcc.c.pcc	2018-03-22 06:40:12.000000000 +0900
e293be
+++ ./drivers/mailbox/pcc.c	2018-04-16 16:58:39.000000000 +0900
e293be
@@ -172,7 +172,7 @@ static bool pcc_tx_done(struct mbox_chan
e293be
 {
e293be
 	struct acpi_pcct_hw_reduced *pcct_ss = chan->con_priv;
e293be
 	struct acpi_pcct_shared_memory *generic_comm_base =
e293be
-		(struct acpi_pcct_shared_memory *) pcct_ss->base_address;
e293be
+		(struct acpi_pcct_shared_memory *) (unsigned long) pcct_ss->base_address;
e293be
 	u16 cmd_delay = pcct_ss->latency;
e293be
 	unsigned int retries = 0;
e293be
 
e293be
@@ -207,7 +207,7 @@ static int pcc_send_data(struct mbox_cha
e293be
 {
e293be
 	struct acpi_pcct_hw_reduced *pcct_ss = chan->con_priv;
e293be
 	struct acpi_pcct_shared_memory *generic_comm_base =
e293be
-		(struct acpi_pcct_shared_memory *) pcct_ss->base_address;
e293be
+		(struct acpi_pcct_shared_memory *) (unsigned long) pcct_ss->base_address;
e293be
 	struct acpi_generic_address doorbell;
e293be
 	u64 doorbell_preserve;
e293be
 	u64 doorbell_val;