[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTilDZdke5V6TYtDheK9rCaxTDHqtoPR7I_tEvFR2@mail.gmail.com>
Date: Tue, 8 Jun 2010 12:11:44 +0900
From: Akinobu Mita <akinobu.mita@...il.com>
To: Wim Van Sebroeck <wim@...ana.be>,
Hans-Christian Egtvedt <hcegtvedt@...el.com>
Cc: linux-kernel@...r.kernel.org
Subject: setting miscdevice.parent after misc_register()
In drivers/watchdog/at32ap700x_wdt.c, and drivers/watchdog/sch311x_wdt.c
miscdevice.parent is set after misc_register().
drivers/watchdog/at32ap700x_wdt.c:
ret = misc_register(&wdt->miscdev);
...
wdt->miscdev.parent = &pdev->dev;
But it does nothing. (the miscdevice will not be a child of that parent
device in sysfs)
So should it be set before misc_register() or just keep it as-is?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists