diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-04 21:44:12 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-04 21:44:12 -0500 |
commit | db9edfd7e339ca4113153d887e782dd05be5a9eb (patch) | |
tree | 0a4ba12447a0cabc800adc7e9667d284777b0181 /drivers/pcmcia | |
parent | 631b034724364b413e8a52e7c2e03a9d77e4c2b4 (diff) | |
parent | fd586bacf439f36dea9b9bf6e6133ac87df2730c (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6
Trivial manual merge fixup for usb_find_interface clashes.
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r-- | drivers/pcmcia/cs.c | 10 | ||||
-rw-r--r-- | drivers/pcmcia/ds.c | 50 |
2 files changed, 30 insertions, 30 deletions
diff --git a/drivers/pcmcia/cs.c b/drivers/pcmcia/cs.c index a30aa74304a2..7cf09084ef61 100644 --- a/drivers/pcmcia/cs.c +++ b/drivers/pcmcia/cs.c | |||
@@ -901,14 +901,14 @@ int pcmcia_insert_card(struct pcmcia_socket *skt) | |||
901 | EXPORT_SYMBOL(pcmcia_insert_card); | 901 | EXPORT_SYMBOL(pcmcia_insert_card); |
902 | 902 | ||
903 | 903 | ||
904 | static int pcmcia_socket_hotplug(struct class_device *dev, char **envp, | 904 | static int pcmcia_socket_uevent(struct class_device *dev, char **envp, |
905 | int num_envp, char *buffer, int buffer_size) | 905 | int num_envp, char *buffer, int buffer_size) |
906 | { | 906 | { |
907 | struct pcmcia_socket *s = container_of(dev, struct pcmcia_socket, dev); | 907 | struct pcmcia_socket *s = container_of(dev, struct pcmcia_socket, dev); |
908 | int i = 0, length = 0; | 908 | int i = 0, length = 0; |
909 | 909 | ||
910 | if (add_hotplug_env_var(envp, num_envp, &i, buffer, buffer_size, | 910 | if (add_uevent_var(envp, num_envp, &i, buffer, buffer_size, |
911 | &length, "SOCKET_NO=%u", s->sock)) | 911 | &length, "SOCKET_NO=%u", s->sock)) |
912 | return -ENOMEM; | 912 | return -ENOMEM; |
913 | 913 | ||
914 | envp[i] = NULL; | 914 | envp[i] = NULL; |
@@ -927,7 +927,7 @@ static void pcmcia_release_socket_class(struct class *data) | |||
927 | 927 | ||
928 | struct class pcmcia_socket_class = { | 928 | struct class pcmcia_socket_class = { |
929 | .name = "pcmcia_socket", | 929 | .name = "pcmcia_socket", |
930 | .hotplug = pcmcia_socket_hotplug, | 930 | .uevent = pcmcia_socket_uevent, |
931 | .release = pcmcia_release_socket, | 931 | .release = pcmcia_release_socket, |
932 | .class_release = pcmcia_release_socket_class, | 932 | .class_release = pcmcia_release_socket_class, |
933 | }; | 933 | }; |
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 | }; |