Commit 9fe9c742 authored by Federico Vaga's avatar Federico Vaga

sw:drv: bugfix to retrieve trtl_dev

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent d480e475
......@@ -902,7 +902,7 @@ const struct file_operations trtl_hmq_fops = {
*/
static void trtl_message_pop(struct trtl_hmq *hmq, struct trtl_msg *msg)
{
struct trtl_dev *trtl = to_trtl_dev(hmq->dev.parent);
struct trtl_dev *trtl = to_trtl_dev(hmq->dev.parent->parent);
struct trtl_hmq_ctx *ctx;
size_t copy_size = TRTL_CONFIG_ROM_MQ_SIZE_PAYLOAD(hmq->cfg->sizes);
unsigned long flags;
......@@ -1035,7 +1035,7 @@ dispatch_irq:
*/
static void trtl_message_push(struct trtl_hmq *hmq, struct trtl_msg *msg)
{
struct trtl_dev *trtl = to_trtl_dev(hmq->dev.parent);
struct trtl_dev *trtl = to_trtl_dev(hmq->dev.parent->parent);
struct trtl_hmq_ctx *ctx;
unsigned long flags;
size_t size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment