|
@@ -344,11 +344,12 @@ static int qcom_smp2p_outbound_entry(struct qcom_smp2p *smp2p,
|
|
/* Allocate an entry from the smem item */
|
|
/* Allocate an entry from the smem item */
|
|
strlcpy(buf, entry->name, SMP2P_MAX_ENTRY_NAME);
|
|
strlcpy(buf, entry->name, SMP2P_MAX_ENTRY_NAME);
|
|
memcpy_toio(out->entries[out->valid_entries].name, buf, SMP2P_MAX_ENTRY_NAME);
|
|
memcpy_toio(out->entries[out->valid_entries].name, buf, SMP2P_MAX_ENTRY_NAME);
|
|
- out->valid_entries++;
|
|
|
|
|
|
|
|
/* Make the logical entry reference the physical value */
|
|
/* Make the logical entry reference the physical value */
|
|
entry->value = &out->entries[out->valid_entries].value;
|
|
entry->value = &out->entries[out->valid_entries].value;
|
|
|
|
|
|
|
|
+ out->valid_entries++;
|
|
|
|
+
|
|
entry->state = qcom_smem_state_register(node, &smp2p_state_ops, entry);
|
|
entry->state = qcom_smem_state_register(node, &smp2p_state_ops, entry);
|
|
if (IS_ERR(entry->state)) {
|
|
if (IS_ERR(entry->state)) {
|
|
dev_err(smp2p->dev, "failed to register qcom_smem_state\n");
|
|
dev_err(smp2p->dev, "failed to register qcom_smem_state\n");
|