pmcraid: Drop __DATE__ usage
The kernel already prints its build timestamp during boot, no need to repeat it in random drivers and produce different object files each time. Cc: Anil Ravindranath <anil_ravindranath@pmc-sierra.com> Cc: linux-scsi@vger.kernel.org Signed-off-by: Michal Marek <mmarek@suse.cz>
This commit is contained in:
parent
152ba39422
commit
a1b666657c
|
@ -4249,8 +4249,8 @@ static ssize_t pmcraid_show_drv_version(
|
||||||
char *buf
|
char *buf
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return snprintf(buf, PAGE_SIZE, "version: %s, build date: %s\n",
|
return snprintf(buf, PAGE_SIZE, "version: %s\n",
|
||||||
PMCRAID_DRIVER_VERSION, PMCRAID_DRIVER_DATE);
|
PMCRAID_DRIVER_VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct device_attribute pmcraid_driver_version_attr = {
|
static struct device_attribute pmcraid_driver_version_attr = {
|
||||||
|
@ -6093,9 +6093,8 @@ static int __init pmcraid_init(void)
|
||||||
dev_t dev;
|
dev_t dev;
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
pmcraid_info("%s Device Driver version: %s %s\n",
|
pmcraid_info("%s Device Driver version: %s\n",
|
||||||
PMCRAID_DRIVER_NAME,
|
PMCRAID_DRIVER_NAME, PMCRAID_DRIVER_VERSION);
|
||||||
PMCRAID_DRIVER_VERSION, PMCRAID_DRIVER_DATE);
|
|
||||||
|
|
||||||
error = alloc_chrdev_region(&dev, 0,
|
error = alloc_chrdev_region(&dev, 0,
|
||||||
PMCRAID_MAX_ADAPTERS,
|
PMCRAID_MAX_ADAPTERS,
|
||||||
|
|
|
@ -43,7 +43,6 @@
|
||||||
#define PMCRAID_DRIVER_NAME "PMC MaxRAID"
|
#define PMCRAID_DRIVER_NAME "PMC MaxRAID"
|
||||||
#define PMCRAID_DEVFILE "pmcsas"
|
#define PMCRAID_DEVFILE "pmcsas"
|
||||||
#define PMCRAID_DRIVER_VERSION "1.0.3"
|
#define PMCRAID_DRIVER_VERSION "1.0.3"
|
||||||
#define PMCRAID_DRIVER_DATE __DATE__
|
|
||||||
|
|
||||||
#define PMCRAID_FW_VERSION_1 0x002
|
#define PMCRAID_FW_VERSION_1 0x002
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue