Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171259
b: refs/heads/master
c: cb6b376
h: refs/heads/master
i:
  171257: 560a4cd
  171255: 47d4619
v: v3
  • Loading branch information
Dmitry Eremin-Solenikov committed Nov 6, 2009
1 parent 4f399f3 commit dfba713
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a9966b580a3e9d7cf820b5360b574f439d813ef4
refs/heads/master: cb6b3763571570ebde1e82524c8a45a4275c8f11
4 changes: 2 additions & 2 deletions trunk/net/ieee802154/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
obj-$(CONFIG_IEEE802154) += nl802154.o af_802154.o wpan-class.o
nl802154-y := netlink.o nl_policy.o
obj-$(CONFIG_IEEE802154) += ieee802154.o af_802154.o
ieee802154-y := netlink.o nl_policy.o wpan-class.o
af_802154-y := af_ieee802154.o raw.o dgram.o

ccflags-y += -Wall -DDEBUG
9 changes: 2 additions & 7 deletions trunk/net/ieee802154/netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ static struct genl_ops ieee802154_coordinator_ops[] = {
ieee802154_dump_iface),
};

static int __init ieee802154_nl_init(void)
int __init ieee802154_nl_init(void)
{
int rc;
int i;
Expand Down Expand Up @@ -676,14 +676,9 @@ static int __init ieee802154_nl_init(void)
genl_unregister_family(&ieee802154_coordinator_family);
return rc;
}
module_init(ieee802154_nl_init);

static void __exit ieee802154_nl_exit(void)
void __exit ieee802154_nl_exit(void)
{
genl_unregister_family(&ieee802154_coordinator_family);
}
module_exit(ieee802154_nl_exit);

MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("ieee 802.15.4 configuration interface");

23 changes: 20 additions & 3 deletions trunk/net/ieee802154/wpan-class.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

#include <net/wpan-phy.h>

#include "ieee802154.h"

#define MASTER_SHOW_COMPLEX(name, format_string, args...) \
static ssize_t name ## _show(struct device *dev, \
struct device_attribute *attr, char *buf) \
Expand Down Expand Up @@ -188,16 +190,31 @@ EXPORT_SYMBOL(wpan_phy_free);

static int __init wpan_phy_class_init(void)
{
return class_register(&wpan_phy_class);
int rc;
rc = class_register(&wpan_phy_class);
if (rc)
goto err;

rc = ieee802154_nl_init();
if (rc)
goto err_nl;

return 0;
err_nl:
class_unregister(&wpan_phy_class);
err:
return rc;
}
subsys_initcall(wpan_phy_class_init);
module_init(wpan_phy_class_init);

static void __exit wpan_phy_class_exit(void)
{
ieee802154_nl_exit();
class_unregister(&wpan_phy_class);
}
module_exit(wpan_phy_class_exit);

MODULE_DESCRIPTION("IEEE 802.15.4 device class");
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("IEEE 802.15.4 configuration interface");
MODULE_AUTHOR("Dmitry Eremin-Solenikov");

0 comments on commit dfba713

Please sign in to comment.