Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb120da6 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Paul Mackerras
Browse files

[PATCH] Make MODULE_DEVICE_TABLE work for vio devices



Make MODULE_DEVICE_TABLE work for vio devices.

Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 71d276d7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -111,7 +111,7 @@ EXPORT_SYMBOL(vio_unregister_driver);
static const struct vio_device_id *vio_match_device(
static const struct vio_device_id *vio_match_device(
		const struct vio_device_id *ids, const struct vio_dev *dev)
		const struct vio_device_id *ids, const struct vio_dev *dev)
{
{
	while (ids->type) {
	while (ids->type[0] != '\0') {
		if (vio_bus_ops.match(ids, dev))
		if (vio_bus_ops.match(ids, dev))
			return ids;
			return ids;
		ids++;
		ids++;
+1 −1
Original line number Original line Diff line number Diff line
@@ -776,7 +776,7 @@ static int viodasd_remove(struct vio_dev *vdev)
 */
 */
static struct vio_device_id viodasd_device_table[] __devinitdata = {
static struct vio_device_id viodasd_device_table[] __devinitdata = {
	{ "viodasd", "" },
	{ "viodasd", "" },
	{ 0, }
	{ "", "" }
};
};


MODULE_DEVICE_TABLE(vio, viodasd_device_table);
MODULE_DEVICE_TABLE(vio, viodasd_device_table);
+1 −1
Original line number Original line Diff line number Diff line
@@ -734,7 +734,7 @@ static int viocd_remove(struct vio_dev *vdev)
 */
 */
static struct vio_device_id viocd_device_table[] __devinitdata = {
static struct vio_device_id viocd_device_table[] __devinitdata = {
	{ "viocd", "" },
	{ "viocd", "" },
	{ 0, }
	{ "", "" }
};
};


MODULE_DEVICE_TABLE(vio, viocd_device_table);
MODULE_DEVICE_TABLE(vio, viocd_device_table);
+1 −1
Original line number Original line Diff line number Diff line
@@ -39,7 +39,7 @@ char hvc_driver_name[] = "hvc_console";


static struct vio_device_id hvc_driver_table[] __devinitdata = {
static struct vio_device_id hvc_driver_table[] __devinitdata = {
	{"serial", "hvterm1"},
	{"serial", "hvterm1"},
	{ NULL, }
	{ "", "" }
};
};
MODULE_DEVICE_TABLE(vio, hvc_driver_table);
MODULE_DEVICE_TABLE(vio, hvc_driver_table);


+1 −1
Original line number Original line Diff line number Diff line
@@ -527,7 +527,7 @@ static int khvcsd(void *unused)


static struct vio_device_id hvcs_driver_table[] __devinitdata= {
static struct vio_device_id hvcs_driver_table[] __devinitdata= {
	{"serial-server", "hvterm2"},
	{"serial-server", "hvterm2"},
	{ NULL, }
	{ "", "" }
};
};
MODULE_DEVICE_TABLE(vio, hvcs_driver_table);
MODULE_DEVICE_TABLE(vio, hvcs_driver_table);


Loading