mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* setting miscdevice.parent after misc_register()
@ 2010-06-08  3:11 Akinobu Mita
  2010-06-08  6:46 ` Hans-Christian Egtvedt
  2010-06-08 19:34 ` Wim Van Sebroeck
  0 siblings, 2 replies; 3+ messages in thread
From: Akinobu Mita @ 2010-06-08  3:11 UTC (permalink / raw)
  To: Wim Van Sebroeck, Hans-Christian Egtvedt; +Cc: linux-kernel

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?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-08 19:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-08  3:11 setting miscdevice.parent after misc_register() Akinobu Mita
2010-06-08  6:46 ` Hans-Christian Egtvedt
2010-06-08 19:34 ` Wim Van Sebroeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®