diff options
Diffstat (limited to 'drivers/block/xsysace.c')
-rw-r--r-- | drivers/block/xsysace.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/drivers/block/xsysace.c b/drivers/block/xsysace.c index 1a17e338735e..1f38643173ca 100644 --- a/drivers/block/xsysace.c +++ b/drivers/block/xsysace.c | |||
@@ -961,7 +961,7 @@ static const struct block_device_operations ace_fops = { | |||
961 | /* -------------------------------------------------------------------- | 961 | /* -------------------------------------------------------------------- |
962 | * SystemACE device setup/teardown code | 962 | * SystemACE device setup/teardown code |
963 | */ | 963 | */ |
964 | static int __devinit ace_setup(struct ace_device *ace) | 964 | static int ace_setup(struct ace_device *ace) |
965 | { | 965 | { |
966 | u16 version; | 966 | u16 version; |
967 | u16 val; | 967 | u16 val; |
@@ -1074,7 +1074,7 @@ err_ioremap: | |||
1074 | return -ENOMEM; | 1074 | return -ENOMEM; |
1075 | } | 1075 | } |
1076 | 1076 | ||
1077 | static void __devexit ace_teardown(struct ace_device *ace) | 1077 | static void ace_teardown(struct ace_device *ace) |
1078 | { | 1078 | { |
1079 | if (ace->gd) { | 1079 | if (ace->gd) { |
1080 | del_gendisk(ace->gd); | 1080 | del_gendisk(ace->gd); |
@@ -1092,9 +1092,8 @@ static void __devexit ace_teardown(struct ace_device *ace) | |||
1092 | iounmap(ace->baseaddr); | 1092 | iounmap(ace->baseaddr); |
1093 | } | 1093 | } |
1094 | 1094 | ||
1095 | static int __devinit | 1095 | static int ace_alloc(struct device *dev, int id, resource_size_t physaddr, |
1096 | ace_alloc(struct device *dev, int id, resource_size_t physaddr, | 1096 | int irq, int bus_width) |
1097 | int irq, int bus_width) | ||
1098 | { | 1097 | { |
1099 | struct ace_device *ace; | 1098 | struct ace_device *ace; |
1100 | int rc; | 1099 | int rc; |
@@ -1135,7 +1134,7 @@ err_noreg: | |||
1135 | return rc; | 1134 | return rc; |
1136 | } | 1135 | } |
1137 | 1136 | ||
1138 | static void __devexit ace_free(struct device *dev) | 1137 | static void ace_free(struct device *dev) |
1139 | { | 1138 | { |
1140 | struct ace_device *ace = dev_get_drvdata(dev); | 1139 | struct ace_device *ace = dev_get_drvdata(dev); |
1141 | dev_dbg(dev, "ace_free(%p)\n", dev); | 1140 | dev_dbg(dev, "ace_free(%p)\n", dev); |
@@ -1151,7 +1150,7 @@ static void __devexit ace_free(struct device *dev) | |||
1151 | * Platform Bus Support | 1150 | * Platform Bus Support |
1152 | */ | 1151 | */ |
1153 | 1152 | ||
1154 | static int __devinit ace_probe(struct platform_device *dev) | 1153 | static int ace_probe(struct platform_device *dev) |
1155 | { | 1154 | { |
1156 | resource_size_t physaddr = 0; | 1155 | resource_size_t physaddr = 0; |
1157 | int bus_width = ACE_BUS_WIDTH_16; /* FIXME: should not be hard coded */ | 1156 | int bus_width = ACE_BUS_WIDTH_16; /* FIXME: should not be hard coded */ |
@@ -1182,7 +1181,7 @@ static int __devinit ace_probe(struct platform_device *dev) | |||
1182 | /* | 1181 | /* |
1183 | * Platform bus remove() method | 1182 | * Platform bus remove() method |
1184 | */ | 1183 | */ |
1185 | static int __devexit ace_remove(struct platform_device *dev) | 1184 | static int ace_remove(struct platform_device *dev) |
1186 | { | 1185 | { |
1187 | ace_free(&dev->dev); | 1186 | ace_free(&dev->dev); |
1188 | return 0; | 1187 | return 0; |
@@ -1190,7 +1189,7 @@ static int __devexit ace_remove(struct platform_device *dev) | |||
1190 | 1189 | ||
1191 | #if defined(CONFIG_OF) | 1190 | #if defined(CONFIG_OF) |
1192 | /* Match table for of_platform binding */ | 1191 | /* Match table for of_platform binding */ |
1193 | static const struct of_device_id ace_of_match[] __devinitconst = { | 1192 | static const struct of_device_id ace_of_match[] = { |
1194 | { .compatible = "xlnx,opb-sysace-1.00.b", }, | 1193 | { .compatible = "xlnx,opb-sysace-1.00.b", }, |
1195 | { .compatible = "xlnx,opb-sysace-1.00.c", }, | 1194 | { .compatible = "xlnx,opb-sysace-1.00.c", }, |
1196 | { .compatible = "xlnx,xps-sysace-1.00.a", }, | 1195 | { .compatible = "xlnx,xps-sysace-1.00.a", }, |
@@ -1204,7 +1203,7 @@ MODULE_DEVICE_TABLE(of, ace_of_match); | |||
1204 | 1203 | ||
1205 | static struct platform_driver ace_platform_driver = { | 1204 | static struct platform_driver ace_platform_driver = { |
1206 | .probe = ace_probe, | 1205 | .probe = ace_probe, |
1207 | .remove = __devexit_p(ace_remove), | 1206 | .remove = ace_remove, |
1208 | .driver = { | 1207 | .driver = { |
1209 | .owner = THIS_MODULE, | 1208 | .owner = THIS_MODULE, |
1210 | .name = "xsysace", | 1209 | .name = "xsysace", |