diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-11-16 03:00:00 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-04 19:18:08 -0500 |
commit | 312c004d36ce6c739512bac83b452f4c20ab1f62 (patch) | |
tree | e61e8331680a0da29557fe21414d3b31e62c9293 /drivers/pcmcia/ds.c | |
parent | 5f123fbd80f4f788554636f02bf73e40f914e0d6 (diff) |
[PATCH] driver core: replace "hotplug" by "uevent"
Leave the overloaded "hotplug" word to susbsystems which are handling
real devices. The driver core does not "plug" anything, it just exports
the state to userspace and generates events.
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pcmcia/ds.c')
-rw-r--r-- | drivers/pcmcia/ds.c | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c index 7f8219f3fd9e..6fb76399547e 100644 --- a/drivers/pcmcia/ds.c +++ b/drivers/pcmcia/ds.c | |||
@@ -779,8 +779,8 @@ static int pcmcia_bus_match(struct device * dev, struct device_driver * drv) { | |||
779 | 779 | ||
780 | #ifdef CONFIG_HOTPLUG | 780 | #ifdef CONFIG_HOTPLUG |
781 | 781 | ||
782 | static int pcmcia_bus_hotplug(struct device *dev, char **envp, int num_envp, | 782 | static int pcmcia_bus_uevent(struct device *dev, char **envp, int num_envp, |
783 | char *buffer, int buffer_size) | 783 | char *buffer, int buffer_size) |
784 | { | 784 | { |
785 | struct pcmcia_device *p_dev; | 785 | struct pcmcia_device *p_dev; |
786 | int i, length = 0; | 786 | int i, length = 0; |
@@ -800,31 +800,31 @@ static int pcmcia_bus_hotplug(struct device *dev, char **envp, int num_envp, | |||
800 | 800 | ||
801 | i = 0; | 801 | i = 0; |
802 | 802 | ||
803 | if (add_hotplug_env_var(envp, num_envp, &i, | 803 | if (add_uevent_var(envp, num_envp, &i, |
804 | buffer, buffer_size, &length, | 804 | buffer, buffer_size, &length, |
805 | "SOCKET_NO=%u", | 805 | "SOCKET_NO=%u", |
806 | p_dev->socket->sock)) | 806 | p_dev->socket->sock)) |
807 | return -ENOMEM; | 807 | return -ENOMEM; |
808 | 808 | ||
809 | if (add_hotplug_env_var(envp, num_envp, &i, | 809 | if (add_uevent_var(envp, num_envp, &i, |
810 | buffer, buffer_size, &length, | 810 | buffer, buffer_size, &length, |
811 | "DEVICE_NO=%02X", | 811 | "DEVICE_NO=%02X", |
812 | p_dev->device_no)) | 812 | p_dev->device_no)) |
813 | return -ENOMEM; | 813 | return -ENOMEM; |
814 | 814 | ||
815 | if (add_hotplug_env_var(envp, num_envp, &i, | 815 | if (add_uevent_var(envp, num_envp, &i, |
816 | buffer, buffer_size, &length, | 816 | buffer, buffer_size, &length, |
817 | "MODALIAS=pcmcia:m%04Xc%04Xf%02Xfn%02Xpfn%02X" | 817 | "MODALIAS=pcmcia:m%04Xc%04Xf%02Xfn%02Xpfn%02X" |
818 | "pa%08Xpb%08Xpc%08Xpd%08X", | 818 | "pa%08Xpb%08Xpc%08Xpd%08X", |
819 | p_dev->has_manf_id ? p_dev->manf_id : 0, | 819 | p_dev->has_manf_id ? p_dev->manf_id : 0, |
820 | p_dev->has_card_id ? p_dev->card_id : 0, | 820 | p_dev->has_card_id ? p_dev->card_id : 0, |
821 | p_dev->has_func_id ? p_dev->func_id : 0, | 821 | p_dev->has_func_id ? p_dev->func_id : 0, |
822 | p_dev->func, | 822 | p_dev->func, |
823 | p_dev->device_no, | 823 | p_dev->device_no, |
824 | hash[0], | 824 | hash[0], |
825 | hash[1], | 825 | hash[1], |
826 | hash[2], | 826 | hash[2], |
827 | hash[3])) | 827 | hash[3])) |
828 | return -ENOMEM; | 828 | return -ENOMEM; |
829 | 829 | ||
830 | envp[i] = NULL; | 830 | envp[i] = NULL; |
@@ -834,7 +834,7 @@ static int pcmcia_bus_hotplug(struct device *dev, char **envp, int num_envp, | |||
834 | 834 | ||
835 | #else | 835 | #else |
836 | 836 | ||
837 | static int pcmcia_bus_hotplug(struct device *dev, char **envp, int num_envp, | 837 | static int pcmcia_bus_uevent(struct device *dev, char **envp, int num_envp, |
838 | char *buffer, int buffer_size) | 838 | char *buffer, int buffer_size) |
839 | { | 839 | { |
840 | return -ENODEV; | 840 | return -ENODEV; |
@@ -1223,7 +1223,7 @@ static struct class_interface pcmcia_bus_interface = { | |||
1223 | 1223 | ||
1224 | struct bus_type pcmcia_bus_type = { | 1224 | struct bus_type pcmcia_bus_type = { |
1225 | .name = "pcmcia", | 1225 | .name = "pcmcia", |
1226 | .hotplug = pcmcia_bus_hotplug, | 1226 | .uevent = pcmcia_bus_uevent, |
1227 | .match = pcmcia_bus_match, | 1227 | .match = pcmcia_bus_match, |
1228 | .dev_attrs = pcmcia_dev_attrs, | 1228 | .dev_attrs = pcmcia_dev_attrs, |
1229 | }; | 1229 | }; |