Commit dcfae049 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] I2C: remove I2C_VERSION and I2C_DATE as they make no sense in the kernel tree.

parent 6c16fa73
...@@ -525,7 +525,6 @@ static struct pci_driver ali1535_driver = { ...@@ -525,7 +525,6 @@ static struct pci_driver ali1535_driver = {
static int __init i2c_ali1535_init(void) static int __init i2c_ali1535_init(void)
{ {
printk(KERN_INFO "i2c-ali1535 version %s (%s)\n", I2C_VERSION, I2C_DATE);
return pci_module_init(&ali1535_driver); return pci_module_init(&ali1535_driver);
} }
......
...@@ -517,7 +517,6 @@ static struct pci_driver ali15x3_driver = { ...@@ -517,7 +517,6 @@ static struct pci_driver ali15x3_driver = {
static int __init i2c_ali15x3_init(void) static int __init i2c_ali15x3_init(void)
{ {
printk("i2c-ali15x3.o version %s (%s)\n", I2C_VERSION, I2C_DATE);
return pci_module_init(&ali15x3_driver); return pci_module_init(&ali15x3_driver);
} }
......
...@@ -77,7 +77,7 @@ static void pcf_isa_setbyte(void *data, int ctl, int val) ...@@ -77,7 +77,7 @@ static void pcf_isa_setbyte(void *data, int ctl, int val)
val |= I2C_PCF_ENI; val |= I2C_PCF_ENI;
} }
DEB3(printk(KERN_DEBUG "i2c-elektor.o: Write 0x%X 0x%02X\n", address, val & 255)); DEB3(printk(KERN_DEBUG "i2c-elektor: Write 0x%X 0x%02X\n", address, val & 255));
switch (mmapped) { switch (mmapped) {
case 0: /* regular I/O */ case 0: /* regular I/O */
...@@ -98,7 +98,7 @@ static int pcf_isa_getbyte(void *data, int ctl) ...@@ -98,7 +98,7 @@ static int pcf_isa_getbyte(void *data, int ctl)
int address = ctl ? (base + 1) : base; int address = ctl ? (base + 1) : base;
int val = mmapped ? readb(address) : inb(address); int val = mmapped ? readb(address) : inb(address);
DEB3(printk(KERN_DEBUG "i2c-elektor.o: Read 0x%X 0x%02X\n", address, val)); DEB3(printk(KERN_DEBUG "i2c-elektor: Read 0x%X 0x%02X\n", address, val));
return (val); return (val);
} }
...@@ -143,14 +143,14 @@ static int pcf_isa_init(void) ...@@ -143,14 +143,14 @@ static int pcf_isa_init(void)
if (!mmapped) { if (!mmapped) {
if (!request_region(base, 2, "i2c (isa bus adapter)")) { if (!request_region(base, 2, "i2c (isa bus adapter)")) {
printk(KERN_ERR printk(KERN_ERR
"i2c-elektor.o: requested I/O region (0x%X:2) " "i2c-elektor: requested I/O region (0x%X:2) "
"is in use.\n", base); "is in use.\n", base);
return -ENODEV; return -ENODEV;
} }
} }
if (irq > 0) { if (irq > 0) {
if (request_irq(irq, pcf_isa_handler, 0, "PCF8584", 0) < 0) { if (request_irq(irq, pcf_isa_handler, 0, "PCF8584", 0) < 0) {
printk(KERN_ERR "i2c-elektor.o: Request irq%d failed\n", irq); printk(KERN_ERR "i2c-elektor: Request irq%d failed\n", irq);
irq = 0; irq = 0;
} else } else
enable_irq(irq); enable_irq(irq);
...@@ -196,7 +196,7 @@ static int __init i2c_pcfisa_init(void) ...@@ -196,7 +196,7 @@ static int __init i2c_pcfisa_init(void)
/* yeap, we've found cypress, let's check config */ /* yeap, we've found cypress, let's check config */
if (!pci_read_config_byte(cy693_dev, 0x47, &config)) { if (!pci_read_config_byte(cy693_dev, 0x47, &config)) {
DEB3(printk(KERN_DEBUG "i2c-elektor.o: found cy82c693, config register 0x47 = 0x%02x.\n", config)); DEB3(printk(KERN_DEBUG "i2c-elektor: found cy82c693, config register 0x47 = 0x%02x.\n", config));
/* UP2000 board has this register set to 0xe1, /* UP2000 board has this register set to 0xe1,
but the most significant bit as seems can be but the most significant bit as seems can be
...@@ -218,7 +218,7 @@ static int __init i2c_pcfisa_init(void) ...@@ -218,7 +218,7 @@ static int __init i2c_pcfisa_init(void)
8.25 MHz (PCI/4) clock 8.25 MHz (PCI/4) clock
(this can be read from cypress) */ (this can be read from cypress) */
clock = I2C_PCF_CLK | I2C_PCF_TRNS90; clock = I2C_PCF_CLK | I2C_PCF_TRNS90;
printk(KERN_INFO "i2c-elektor.o: found API UP2000 like board, will probe PCF8584 later.\n"); printk(KERN_INFO "i2c-elektor: found API UP2000 like board, will probe PCF8584 later.\n");
} }
} }
} }
...@@ -227,11 +227,11 @@ static int __init i2c_pcfisa_init(void) ...@@ -227,11 +227,11 @@ static int __init i2c_pcfisa_init(void)
/* sanity checks for mmapped I/O */ /* sanity checks for mmapped I/O */
if (mmapped && base < 0xc8000) { if (mmapped && base < 0xc8000) {
printk(KERN_ERR "i2c-elektor.o: incorrect base address (0x%0X) specified for mmapped I/O.\n", base); printk(KERN_ERR "i2c-elektor: incorrect base address (0x%0X) specified for mmapped I/O.\n", base);
return -ENODEV; return -ENODEV;
} }
printk(KERN_INFO "i2c-elektor.o: i2c pcf8584-isa adapter module version %s (%s)\n", I2C_VERSION, I2C_DATE); printk(KERN_INFO "i2c-elektor: i2c pcf8584-isa adapter driver\n");
if (base == 0) { if (base == 0) {
base = DEFAULT_BASE; base = DEFAULT_BASE;
...@@ -243,7 +243,7 @@ static int __init i2c_pcfisa_init(void) ...@@ -243,7 +243,7 @@ static int __init i2c_pcfisa_init(void)
if (i2c_pcf_add_bus(&pcf_isa_ops) < 0) if (i2c_pcf_add_bus(&pcf_isa_ops) < 0)
goto fail; goto fail;
printk(KERN_ERR "i2c-elektor.o: found device at %#x.\n", base); printk(KERN_ERR "i2c-elektor: found device at %#x.\n", base);
return 0; return 0;
......
...@@ -616,7 +616,6 @@ static struct pci_driver i801_driver = { ...@@ -616,7 +616,6 @@ static struct pci_driver i801_driver = {
static int __init i2c_i801_init(void) static int __init i2c_i801_init(void)
{ {
printk(KERN_INFO "i2c-i801 version %s (%s)\n", I2C_VERSION, I2C_DATE);
return pci_module_init(&i801_driver); return pci_module_init(&i801_driver);
} }
......
...@@ -473,7 +473,6 @@ static struct pci_driver piix4_driver = { ...@@ -473,7 +473,6 @@ static struct pci_driver piix4_driver = {
static int __init i2c_piix4_init(void) static int __init i2c_piix4_init(void)
{ {
printk(KERN_INFO "i2c-piix4 version %s (%s)\n", I2C_VERSION, I2C_DATE);
return pci_module_init(&piix4_driver); return pci_module_init(&piix4_driver);
} }
......
...@@ -78,7 +78,7 @@ static struct i2c_adapter rpx_ops = { ...@@ -78,7 +78,7 @@ static struct i2c_adapter rpx_ops = {
int __init i2c_rpx_init(void) int __init i2c_rpx_init(void)
{ {
printk("i2c-rpx.o: i2c MPC8xx module version %s (%s)\n", I2C_VERSION, I2C_DATE); printk(KERN_INFO "i2c-rpx: i2c MPC8xx driver\n");
/* reset hardware to sane state */ /* reset hardware to sane state */
rpx_iic_init(&rpx_data); rpx_iic_init(&rpx_data);
......
...@@ -399,7 +399,6 @@ static struct pci_driver sis5595_driver = { ...@@ -399,7 +399,6 @@ static struct pci_driver sis5595_driver = {
static int __init i2c_sis5595_init(void) static int __init i2c_sis5595_init(void)
{ {
printk(KERN_INFO "i2c-sis5595 version %s (%s)\n", I2C_VERSION, I2C_DATE);
return pci_module_init(&sis5595_driver); return pci_module_init(&sis5595_driver);
} }
......
...@@ -474,7 +474,6 @@ static struct pci_driver sis630_driver = { ...@@ -474,7 +474,6 @@ static struct pci_driver sis630_driver = {
static int __init i2c_sis630_init(void) static int __init i2c_sis630_init(void)
{ {
printk("i2c-sis630.o version %s (%s)\n", I2C_VERSION, I2C_DATE);
return pci_module_init(&sis630_driver); return pci_module_init(&sis630_driver);
} }
......
...@@ -120,7 +120,7 @@ static struct i2c_adapter bit_velle_ops = { ...@@ -120,7 +120,7 @@ static struct i2c_adapter bit_velle_ops = {
static int __init i2c_bitvelle_init(void) static int __init i2c_bitvelle_init(void)
{ {
printk(KERN_INFO "i2c-velleman.o: i2c Velleman K8000 adapter module version %s (%s)\n", I2C_VERSION, I2C_DATE); printk(KERN_INFO "i2c-velleman: i2c Velleman K8000 driver\n");
if (base==0) { if (base==0) {
/* probe some values */ /* probe some values */
base=DEFAULT_BASE; base=DEFAULT_BASE;
...@@ -140,7 +140,7 @@ static int __init i2c_bitvelle_init(void) ...@@ -140,7 +140,7 @@ static int __init i2c_bitvelle_init(void)
return -ENODEV; return -ENODEV;
} }
} }
printk(KERN_DEBUG "i2c-velleman.o: found device at %#x.\n",base); printk(KERN_DEBUG "i2c-velleman: found device at %#x.\n",base);
return 0; return 0;
} }
......
...@@ -165,7 +165,6 @@ static struct pci_driver vt586b_driver = { ...@@ -165,7 +165,6 @@ static struct pci_driver vt586b_driver = {
static int __init i2c_vt586b_init(void) static int __init i2c_vt586b_init(void)
{ {
printk(KERN_INFO "i2c-via version %s (%s)\n", I2C_VERSION, I2C_DATE);
return pci_module_init(&vt586b_driver); return pci_module_init(&vt586b_driver);
} }
......
...@@ -505,8 +505,7 @@ static int __init i2c_dev_init(void) ...@@ -505,8 +505,7 @@ static int __init i2c_dev_init(void)
{ {
int res; int res;
printk(KERN_INFO "i2c /dev entries driver module version %s (%s)\n", printk(KERN_INFO "i2c /dev entries driver\n");
I2C_VERSION, I2C_DATE);
if (register_chrdev(I2C_MAJOR,"i2c",&i2cdev_fops)) { if (register_chrdev(I2C_MAJOR,"i2c",&i2cdev_fops)) {
printk(KERN_ERR "i2c-dev.o: unable to get major %d for i2c bus\n", printk(KERN_ERR "i2c-dev.o: unable to get major %d for i2c bus\n",
......
...@@ -28,9 +28,6 @@ ...@@ -28,9 +28,6 @@
#ifndef _LINUX_I2C_H #ifndef _LINUX_I2C_H
#define _LINUX_I2C_H #define _LINUX_I2C_H
#define I2C_DATE "20021208"
#define I2C_VERSION "2.7.0"
#include <linux/module.h> #include <linux/module.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/i2c-id.h> #include <linux/i2c-id.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment