Skip to content

Commit

Permalink
[PATCH] Dallas's 1-wire bus compile error
Browse files Browse the repository at this point in the history
drivers/built-in.o: In function `w1_alloc_dev': undefined reference to `netlink_kernel_create'
drivers/built-in.o: In function `w1_alloc_dev': undefined reference to `sock_release'

Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Evgeniy Polyakov authored and Linus Torvalds committed Oct 15, 2005
1 parent 0e7734d commit 2d1f87a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/w1/w1.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ static void w1_master_release(struct device *dev)

dev_dbg(dev, "%s: Releasing %s.\n", __func__, md->name);

if (md->nls && md->nls->sk_socket)
sock_release(md->nls->sk_socket);
dev_fini_netlink(md);
memset(md, 0, sizeof(struct w1_master) + sizeof(struct w1_bus_master));
kfree(md);
}
Expand Down

0 comments on commit 2d1f87a

Please sign in to comment.