Skip to content

Commit 22b1656

Browse files
committed
powerpc/powernv: Use struct opal_prd_msg in more places
Use the newly added struct opal_prd_msg in some other functions that operate on opal_prd messages, rather than using other types. Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
1 parent feea65a commit 22b1656

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arch/powerpc/platforms/powernv/opal-prd.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ static ssize_t opal_prd_write(struct file *file, const char __user *buf,
221221
size_t count, loff_t *ppos)
222222
{
223223
struct opal_prd_msg_header hdr;
224+
struct opal_prd_msg *msg;
224225
ssize_t size;
225-
void *msg;
226226
int rc;
227227

228228
size = sizeof(hdr);
@@ -254,12 +254,12 @@ static ssize_t opal_prd_write(struct file *file, const char __user *buf,
254254

255255
static int opal_prd_release(struct inode *inode, struct file *file)
256256
{
257-
struct opal_prd_msg_header msg;
257+
struct opal_prd_msg msg;
258258

259-
msg.size = cpu_to_be16(sizeof(msg));
260-
msg.type = OPAL_PRD_MSG_TYPE_FINI;
259+
msg.header.size = cpu_to_be16(sizeof(msg));
260+
msg.header.type = OPAL_PRD_MSG_TYPE_FINI;
261261

262-
opal_prd_msg((struct opal_prd_msg *)&msg);
262+
opal_prd_msg(&msg);
263263

264264
atomic_xchg(&prd_usage, 0);
265265

0 commit comments

Comments
 (0)